trivial-builders: Sanitize derivation name

This then supports using functions like writeShellScriptBin with script names
that would be invalid as derivation names
wip/yesman
Silvan Mosberger 4 years ago
parent 1c951b1484
commit c60e559e13
No known key found for this signature in database
GPG Key ID: E8F1E9EAD284E17D
  1. 3
      pkgs/build-support/trivial-builders.nix

@ -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 {

Loading…
Cancel
Save