Merge pull request #85255 from Infinisil/sanitize-run-command-name

This commit is contained in:
Silvan Mosberger 2020-04-25 00:11:41 +02:00 committed by GitHub
commit eeb4e522b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,8 @@ let
runCommand' = runLocal: stdenv: name: env: buildCommand:
stdenv.mkDerivation ({
inherit name buildCommand;
name = lib.strings.sanitizeDerivationName name;
inherit buildCommand;
passAsFile = [ "buildCommand" ];
}
// (lib.optionalAttrs runLocal {