Move registrySnapshot into it's own file for easier automation.
This commit is contained in:
parent
7e57b20abc
commit
2a7e77cac5
@ -16,12 +16,7 @@ stdenv.mkDerivation (attrs // {
|
|||||||
buildInputs = buildInputs ++ [ erlang rebar3 openssl libyaml ];
|
buildInputs = buildInputs ++ [ erlang rebar3 openssl libyaml ];
|
||||||
|
|
||||||
postPatch = let
|
postPatch = let
|
||||||
registrySnapshot = fetchFromGitHub {
|
registrySnapshot = import ./registrySnapshot.nix { inherit fetchFromGitHub; };
|
||||||
owner = "gleber";
|
|
||||||
repo = "hex-pm-registry-snapshots";
|
|
||||||
rev = "48147b0";
|
|
||||||
sha256 = "0ibfnhrhbka4n6wkhs99fpy3sjab54ip37jgvx2hcfhfr4pxhbxw";
|
|
||||||
};
|
|
||||||
in ''
|
in ''
|
||||||
rm -f rebar rebar3
|
rm -f rebar rebar3
|
||||||
if [ -e "src/${name}.app.src" ]; then
|
if [ -e "src/${name}.app.src" ]; then
|
||||||
|
8
pkgs/development/erlang-modules/registrySnapshot.nix
Normal file
8
pkgs/development/erlang-modules/registrySnapshot.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{ fetchFromGitHub }:
|
||||||
|
|
||||||
|
fetchFromGitHub {
|
||||||
|
owner = "gleber";
|
||||||
|
repo = "hex-pm-registry-snapshots";
|
||||||
|
rev = "48147b0";
|
||||||
|
sha256 = "0ibfnhrhbka4n6wkhs99fpy3sjab54ip37jgvx2hcfhfr4pxhbxw";
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user