on stack-cache-native help sign in
haskell.nix/modules/compat-driver.nix
19 lines 633 B history raw
1{ lib, config, pkgs, haskellLib, ... }:
3{
4 options.hsPkgs = lib.mkOption {
5 type = lib.types.unspecified;
6 };
8 config.hsPkgs = pkgs.callPackage "${pkgs.path}/pkgs/development/haskell-modules" {
9 haskellLib = pkgs.haskell.lib;
10 ghc = config.ghc.package;
11 buildHaskellPackages = config.hsPkgs;
12 compilerConfig = _: _: lib.mapAttrs (_: _: null) (builtins.removeAttrs config.compiler.packages ["ghc"]);
13 initialPackages = args: self:
14 lib.mapAttrs
15 (_: pkg: self.callPackage ../compat/driver.nix { expr = pkg; inherit lib; })
16 config.packages;
17 packageSetConfig = config.overlay pkgs;
18 };