about summary refs log tree commit diff
path: root/third_party/overlays/haskell/default.nix
blob: 6e1ec2d0d1e5a575b0c16b754f322c71648c6e60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Defines an overlay for overriding Haskell packages, for example to
# avoid breakage currently present in nixpkgs or to modify package
# versions.

{ lib, ... }:

self: super: # overlay parameters for the nixpkgs overlay

let
  overrides = hsSelf: hsSuper: with super.haskell.lib; {
    generic-arbitrary = appendPatch hsSuper.generic-arbitrary
      [ ./patches/generic-arbitrary-export-garbitrary.patch ];
  };
in {
  haskellPackages = super.haskellPackages.override {
    inherit overrides;
  };
}