mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-04 03:03:42 +00:00
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 ];
|
||||
|
||||
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
|
||||
|
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…
Reference in New Issue
Block a user