1
1
mirror of https://github.com/nmattia/snack.git synced 2024-11-28 03:45:45 +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:
hyperfekt 2020-05-20 18:16:53 +02:00 committed by Nicolas Mattia
parent 4e13d139c7
commit dda1eb2bcd

View File

@ -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 {});