buildenv: Make buildEnv overridable

callPackage already calls makeOverridable, but that just
makes the function that evaluates to buildEnv overridable,
not buildEnv itself.
If no overridable version of buildEnv is used during construction,
users can't override e.g. `paths` at all
This commit is contained in:
tilpner 2017-07-30 22:09:12 +02:00
parent 87b215d5f7
commit 77f1c7d5bc
No known key found for this signature in database
GPG key ID: 6A13327225BE51F6

View file

@ -4,7 +4,8 @@
{ buildPackages, runCommand, lib }:
{ name
lib.makeOverridable
({ name
, # The manifest file (if any). A symlink $out/manifest will be
# created to it.
@ -68,4 +69,4 @@ runCommand name
''
${buildPackages.perl}/bin/perl -w ${./builder.pl}
eval "$postBuild"
''
'')