haskell infra: Misc cleanups
- The haskell lib is very close to not relying on Nixpkgs. I think this is good---simpler to think about and matches Nixpkgs's lib. - The haskell lib is only imported once - stdenv is exposed more shallowly so it can be overriden more easily. I'll eventually use this on Darwin to avoid the Sierra shared library problems (unless changes are to be made system-wide). Closes https://github.com/NixOS/nixpkgs/pull/27840.
This commit is contained in:
committed by
Peter Simons
parent
a2825a3c6f
commit
74f5fe5068
@@ -1,4 +1,4 @@
|
||||
{ pkgs, stdenv, ghc, all-cabal-hashes
|
||||
{ pkgs, stdenv, lib, haskellLib, ghc, all-cabal-hashes
|
||||
, compilerConfig ? (self: super: {})
|
||||
, packageSetConfig ? (self: super: {})
|
||||
, overrides ? (self: super: {})
|
||||
@@ -9,16 +9,16 @@
|
||||
|
||||
let
|
||||
|
||||
inherit (stdenv.lib) extends makeExtensible;
|
||||
inherit (import ./lib.nix { inherit pkgs; }) overrideCabal makePackageSet;
|
||||
inherit (lib) extends makeExtensible;
|
||||
inherit (haskellLib) overrideCabal makePackageSet;
|
||||
|
||||
haskellPackages = makePackageSet {
|
||||
haskellPackages = pkgs.callPackage makePackageSet {
|
||||
package-set = initialPackages;
|
||||
inherit ghc extensible-self;
|
||||
inherit stdenv haskellLib ghc extensible-self;
|
||||
};
|
||||
|
||||
commonConfiguration = configurationCommon { inherit pkgs; };
|
||||
nixConfiguration = configurationNix { inherit pkgs; };
|
||||
commonConfiguration = configurationCommon { inherit pkgs haskellLib; };
|
||||
nixConfiguration = configurationNix { inherit pkgs haskellLib; };
|
||||
|
||||
extensible-self = makeExtensible
|
||||
(extends overrides
|
||||
|
||||
Reference in New Issue
Block a user