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
|
2022-03-31 18:40:08 +02:00
|
|
|
overrides = hsSelf: hsSuper: with self.haskell.lib.compose; {
|
|
|
|
# No overrides for the default package set necessary at the moment
|
2021-04-10 18:05:16 +02:00
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
haskellPackages = super.haskellPackages.override {
|
|
|
|
inherit overrides;
|
|
|
|
};
|
2022-03-31 18:40:08 +02:00
|
|
|
|
|
|
|
haskell = lib.recursiveUpdate super.haskell {
|
|
|
|
packages.ghc8107 = super.haskell.packages.ghc8107.override {
|
2022-04-26 15:32:10 +02:00
|
|
|
overrides = lib.composeExtensions overrides (
|
|
|
|
hsSelf: hsSuper: with self.haskell.lib.compose; {
|
|
|
|
# TODO(sterni): TODO(grfn): patch xanthous to work with random-fu 0.3.*,
|
|
|
|
# so we can use GHC 9.0.2 and benefit from upstream binary cache.
|
|
|
|
random-fu = hsSelf.callPackage ./extra-pkgs/random-fu-0.2.nix { };
|
|
|
|
rvar = hsSelf.callPackage ./extra-pkgs/rvar-0.2.nix { };
|
|
|
|
}
|
|
|
|
);
|
2022-03-31 18:40:08 +02:00
|
|
|
};
|
|
|
|
};
|
2019-11-30 04:57:58 +01:00
|
|
|
}
|