mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 11:53:51 +00:00
runCommand*: Rely on mkDerivation to sanitize name
This commit is contained in:
parent
7e0ef81015
commit
225ca9088a
@ -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 New Issue
Block a user