Naming tweak
This commit is contained in:
@@ -21,7 +21,7 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# Fetch a single dependency.
|
# Fetch a single dependency.
|
||||||
fetch = { filename, sha512, locator-hash }: stdenv.mkDerivation {
|
fetch-one = { filename, sha512, locator-hash }: stdenv.mkDerivation {
|
||||||
name = replaceStrings [ "@" ] [ "-" ] filename;
|
name = replaceStrings [ "@" ] [ "-" ] filename;
|
||||||
buildInputs = [ nodejs ];
|
buildInputs = [ nodejs ];
|
||||||
builder = builtins.toFile "builder.sh" ''
|
builder = builtins.toFile "builder.sh" ''
|
||||||
@@ -55,7 +55,7 @@ let
|
|||||||
|
|
||||||
# Shell snippet to collect all project dependencies.
|
# Shell snippet to collect all project dependencies.
|
||||||
collect-cache = concatMapStrings (args: ''
|
collect-cache = concatMapStrings (args: ''
|
||||||
cp ${fetch args} './${args.filename}'
|
cp ${fetch-one args} './${args.filename}'
|
||||||
'') cache-entries;
|
'') cache-entries;
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
|
|||||||
Reference in New Issue
Block a user