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
|
|
|
|
|
|
|
{ ... }: # This file needs nothing from readTree
|
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
|
|
|
|
overrides = hsSelf: hsSuper: with super.haskell.lib; rec {
|
|
|
|
generic-arbitrary = appendPatch hsSuper.generic-arbitrary
|
|
|
|
[ ./patches/generic-arbitrary-export-garbitrary.patch ];
|
2020-08-04 19:43:41 +02:00
|
|
|
|
2021-04-10 23:28:33 +02:00
|
|
|
# check dependencies cause circular dependency on itself
|
|
|
|
# and thus an infinite recursion
|
|
|
|
random = dontCheck hsSuper.random_1_2_0;
|
2021-03-19 14:13:44 +01:00
|
|
|
|
2021-04-10 18:05:16 +02:00
|
|
|
# random <1.2
|
|
|
|
test-framework = doJailbreak hsSuper.test-framework;
|
|
|
|
hashable = doJailbreak hsSuper.hashable;
|
|
|
|
test-framework-quickcheck2 = doJailbreak hsSuper.test-framework-quickcheck2;
|
2021-04-10 23:28:33 +02:00
|
|
|
pandoc = doJailbreak hsSuper.pandoc;
|
2021-04-10 18:05:16 +02:00
|
|
|
};
|
|
|
|
in {
|
|
|
|
haskellPackages = super.haskellPackages.override {
|
|
|
|
inherit overrides;
|
|
|
|
};
|
2019-11-30 04:57:58 +01:00
|
|
|
}
|