mirror of
https://github.com/nmattia/snack.git
synced 2024-11-30 18:54:33 +03:00
patch callPackage to use haskellPackages from config
snack-lib ignored the compiler defined in the config when parsing Haskell files because it wasn't passed on from default.nix to its other parts
This commit is contained in:
parent
4e13d139c7
commit
dda1eb2bcd
@ -7,7 +7,13 @@
|
||||
, haskellPackages ? pkgs.haskell.packages.${ghc-version}
|
||||
}:
|
||||
|
||||
with pkgs;
|
||||
# Make callPackage use haskellPackages from the config
|
||||
with (let
|
||||
overriddenPkgs = pkgs // {
|
||||
inherit haskellPackages;
|
||||
callPackage = pkgs.newScope overriddenPkgs;
|
||||
};
|
||||
in overriddenPkgs);
|
||||
|
||||
with (callPackage ./build.nix {});
|
||||
with (callPackage ./files.nix {});
|
||||
|
Loading…
Reference in New Issue
Block a user