mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
20 lines
633 B
Nix
20 lines
633 B
Nix
{ lib, config, pkgs, haskellLib, ... }:
|
|
|
|
{
|
|
options.hsPkgs = lib.mkOption {
|
|
type = lib.types.unspecified;
|
|
};
|
|
|
|
config.hsPkgs = pkgs.callPackage "${pkgs.path}/pkgs/development/haskell-modules" {
|
|
haskellLib = pkgs.haskell.lib;
|
|
ghc = config.ghc.package;
|
|
buildHaskellPackages = config.hsPkgs;
|
|
compilerConfig = _: _: lib.mapAttrs (_: _: null) (builtins.removeAttrs config.compiler.packages ["ghc"]);
|
|
initialPackages = args: self:
|
|
lib.mapAttrs
|
|
(_: pkg: self.callPackage ../compat/driver.nix { expr = pkg; inherit lib; })
|
|
config.packages;
|
|
packageSetConfig = config.overlay pkgs;
|
|
};
|
|
}
|