runCommand*: Rely on mkDerivation to sanitize name
This commit is contained in:
parent
7e0ef81015
commit
225ca9088a
1 changed files with 1 additions and 2 deletions
|
@ -70,8 +70,7 @@ rec {
|
|||
# name of the resulting derivation
|
||||
}: buildCommand:
|
||||
stdenv.mkDerivation ({
|
||||
name = lib.strings.sanitizeDerivationName name;
|
||||
inherit buildCommand;
|
||||
inherit buildCommand name;
|
||||
passAsFile = [ "buildCommand" ]
|
||||
++ (derivationArgs.passAsFile or []);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue