mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
minimal-bootstrap.writeTextFile: remove extra derivations
This commit is contained in:
parent
8ea19fbc18
commit
8ef86405b6
@ -45,9 +45,9 @@ rec {
|
||||
"--strict"
|
||||
"--file"
|
||||
(builtins.toFile "write-text-file.kaem" ''
|
||||
target=''${out}${destination}
|
||||
if match x${if builtins.dirOf destination == "" then "0" else "1"} x1; then
|
||||
mkdir -p ''${out}${builtins.dirOf destination}
|
||||
target=''${out}''${destination}
|
||||
if match x''${mkdirDestination} x1; then
|
||||
mkdir -p ''${out}''${destinationDir}
|
||||
fi
|
||||
cp ''${textPath} ''${target}
|
||||
if match x''${executable} x1; then
|
||||
@ -57,6 +57,9 @@ rec {
|
||||
];
|
||||
|
||||
PATH = lib.makeBinPath [ mescc-tools-extra ];
|
||||
mkdirDestination = if builtins.dirOf destination == "." then "0" else "1";
|
||||
destinationDir = builtins.dirOf destination;
|
||||
inherit destination;
|
||||
};
|
||||
|
||||
writeText = name: text: writeTextFile {inherit name text;};
|
||||
|
Loading…
Reference in New Issue
Block a user