Skip to content

Commit

Permalink
haskell infra: Make sure packages get custom stdenv
Browse files Browse the repository at this point in the history
One of the goals of 74f5fe5 was to allow passing in a custom stdenv,
which would be used for genericBuilder's `mkDerivation` call. That does
work, but if packages takes `stdenv` as an parameter for any reason,
they'll get the default one instead. This change remedies it.

(cherry picked from commit 19de1f5)
  • Loading branch information
Ericson2314 committed Sep 5, 2017
1 parent 8b517eb commit 1360efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/haskell-modules/make-package-set.nix
Expand Up @@ -89,7 +89,7 @@ self: let
};
in stdenv.lib.makeOverridable drvScope (auto // manualArgs);

mkScope = scope: pkgs // pkgs.xorg // pkgs.gnome2 // scope;
mkScope = scope: pkgs // pkgs.xorg // pkgs.gnome2 // { inherit stdenv; } // scope;
defaultScope = mkScope self;
callPackage = drv: args: callPackageWithScope defaultScope drv args;

Expand Down

0 comments on commit 1360efe

Please sign in to comment.