hocker-1.0.3: Interact with the docker registry and generate nix build instructions

Copyright(C) 2016 Awake Networks
LicenseApache-2.0
MaintainerAwake Networks <opensource@awakenetworks.com>
Stabilitystable
Safe HaskellNone
LanguageHaskell2010

Data.Docker.Nix.Lib

Description

 

Synopsis

Documentation

toBase32Nix Source #

Arguments

:: (MonadIO m, MonadError HockerException m) 
=> FilePath

Path to the nix-hash executable, see findExec

-> Base16Digest

Base16Digest to base32 encode

-> m Base32Digest 

Convert a Base16Digest to a Base32Digest using the nix-hash utility.

NB: Nix implements its own custom base32 encoding function for hashes that is not compatible with other more standard and native implementations in Haskell. I opted to call out to nix-hash instead of re-implementing their algorithm because it's non-standard and may change, creating a maintenance headache and surprise behavior.