Move registrySnapshot into it's own file for easier automation.

This commit is contained in:
Gleb Peregud 2015-12-12 14:36:45 +01:00
parent 7e57b20abc
commit 2a7e77cac5
2 changed files with 9 additions and 6 deletions

View File

@ -16,12 +16,7 @@ stdenv.mkDerivation (attrs // {
buildInputs = buildInputs ++ [ erlang rebar3 openssl libyaml ];
postPatch = let
registrySnapshot = fetchFromGitHub {
owner = "gleber";
repo = "hex-pm-registry-snapshots";
rev = "48147b0";
sha256 = "0ibfnhrhbka4n6wkhs99fpy3sjab54ip37jgvx2hcfhfr4pxhbxw";
};
registrySnapshot = import ./registrySnapshot.nix { inherit fetchFromGitHub; };
in ''
rm -f rebar rebar3
if [ -e "src/${name}.app.src" ]; then

View File

@ -0,0 +1,8 @@
{ fetchFromGitHub }:
fetchFromGitHub {
owner = "gleber";
repo = "hex-pm-registry-snapshots";
rev = "48147b0";
sha256 = "0ibfnhrhbka4n6wkhs99fpy3sjab54ip37jgvx2hcfhfr4pxhbxw";
}