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 18:05:16 +02:00
|
|
|
# random = dontCheck (hsSuper.callHackageDirect {
|
|
|
|
# pkg = "random";
|
|
|
|
# ver = "1.2.0";
|
|
|
|
# sha256 = "06s3mmqbsfwv09j2s45qnd66nrxfp9280gnl9ng8yh128pfr7bjh";
|
|
|
|
# } {});
|
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-03-19 14:13:44 +01:00
|
|
|
|
2021-04-10 18:05:16 +02:00
|
|
|
# can be removed if we have the following PR or equivalent
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/116931
|
|
|
|
hedgehog-classes = overrideCabal hsSuper.hedgehog-classes (attrs: {
|
|
|
|
# remove version bound on semirings which is inside a
|
|
|
|
# conditional, so doJailbreak doesn't work
|
|
|
|
prePatch = ''
|
|
|
|
sed -i 's|semirings.*0.6|semirings|g' hedgehog-classes.cabal
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
|
|
|
hgeometry-combinatorial = dontCheck hsSuper.hgeometry-combinatorial;
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
haskellPackages = super.haskellPackages.override {
|
|
|
|
inherit overrides;
|
|
|
|
};
|
2019-11-30 04:57:58 +01:00
|
|
|
}
|