feat(3p/haskellPackages): port in patches from xanthous
Add a few relatively uncontroversial patches to fix some broken packages that I had developed for xanthous to the top-level third_party tree, so they can be reused by other people in the monorepo Change-Id: I68740477bda278c5dcc123080029ee4bd2cae37a Reviewed-on: https://cl.tvl.fyi/c/depot/+/740 Reviewed-by: Profpatsch <mail@profpatsch.de> Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
0ecc9b4ed3
commit
8091da8f0f
9 changed files with 230 additions and 19 deletions
|
|
@ -1,16 +1,16 @@
|
|||
{ nixpkgs ? import ./nixpkgs.nix {}, compiler ? "ghc865", withHoogle ? true }:
|
||||
{ nixpkgs ? import ./nixpkgs.nix {}
|
||||
, pkgs ? nixpkgs.pkgs
|
||||
, compiler ? "ghc865"
|
||||
, withHoogle ? true
|
||||
}:
|
||||
let
|
||||
inherit (nixpkgs) pkgs;
|
||||
|
||||
pkg = import ./pkg.nix { inherit nixpkgs; };
|
||||
pkg = import ./pkg.nix { inherit pkgs; };
|
||||
|
||||
packageSet = (
|
||||
if compiler == "default"
|
||||
then pkgs.haskellPackages
|
||||
else pkgs.haskell.packages.${compiler}
|
||||
).override {
|
||||
overrides = import ./haskell-overlay.nix { inherit nixpkgs; };
|
||||
};
|
||||
);
|
||||
|
||||
haskellPackages = (
|
||||
if withHoogle
|
||||
|
|
@ -18,7 +18,8 @@ let
|
|||
overrides = (self: super: {
|
||||
ghc = super.ghc // { withPackages = super.ghc.withHoogle; };
|
||||
ghcWithPackages = self.ghc.withPackages;
|
||||
} // (import ./haskell-overlay.nix { inherit nixpkgs; }) self super);
|
||||
} // (import ../../../third_party/haskell_overlay { inherit pkgs; })
|
||||
self super);
|
||||
}
|
||||
else packageSet
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue