2021-04-10 18:05:16 +02:00
|
|
|
# Defines an overlay for overriding Haskell packages, for example to
|
|
|
|
# avoid breakage currently present in nixpkgs or to modify package
|
|
|
|
# versions.
|
2021-04-10 14:12:25 +02:00
|
|
|
|
2021-11-14 18:33:07 +01:00
|
|
|
{ lib, ... }:
|
2020-06-29 03:27:02 +02:00
|
|
|
|
2021-04-10 18:05:16 +02:00
|
|
|
self: super: # overlay parameters for the nixpkgs overlay
|
2019-12-30 17:31:56 +01:00
|
|
|
|
2021-04-10 18:05:16 +02:00
|
|
|
let
|
2021-11-14 18:33:07 +01:00
|
|
|
overrides = hsSelf: hsSuper: with super.haskell.lib; {
|
2021-04-10 18:05:16 +02:00
|
|
|
generic-arbitrary = appendPatch hsSuper.generic-arbitrary
|
|
|
|
[ ./patches/generic-arbitrary-export-garbitrary.patch ];
|
2021-11-14 18:33:07 +01:00
|
|
|
|
|
|
|
nix-diff = overrideSrc hsSuper.nix-diff {
|
|
|
|
src = builtins.fetchTarball {
|
|
|
|
# https://github.com/Gabriel439/nix-diff/pull/50
|
|
|
|
url = "https://github.com/Profpatsch/nix-diff/archive/6234936b26cd144d321039a44cf1791dcfaee026.tar.gz";
|
|
|
|
sha256 = "1i3ahh8jmiayf29i1xrl2n1dkldgdmrllmccxi4yx6hbcd0r2b1l";
|
|
|
|
};
|
|
|
|
};
|
2021-04-10 18:05:16 +02:00
|
|
|
};
|
|
|
|
in {
|
|
|
|
haskellPackages = super.haskellPackages.override {
|
|
|
|
inherit overrides;
|
|
|
|
};
|
2019-11-30 04:57:58 +01:00
|
|
|
}
|