http://sandervanderburg.blogspot.com.au/2014/07/managing-private-nix-packages-outside.html
https://www.reddit.com/r/NixOS/comments/4btjnf/fully_setting_up_a_custom_private_nix_repository/
nix-shell nixpkgs-custom.nix -A pkg
nix-build nixpkgs-custom.nix -A pkg
nix-build -E 'with import {}; callPackage ./default.nix {}'
nix-env -f nixpkgs-custom.nix -iA ConvertBetweenFileFormats