-
Notifications
You must be signed in to change notification settings - Fork 11
/
default.nix
33 lines (31 loc) · 818 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# You can build this repository using Nix by running:
#
# $ nix-build
#
# You can also open up this repository inside of a Nix shell by running:
#
# $ nix-shell
#
# ... and then Nix will supply the correct Haskell development environment for
# you
let
config = {
packageOverrides = pkgs: {
haskellPackages = pkgs.haskellPackages.override {
overrides = haskellPackagesNew: haskellPackagesOld: {
nix-derivation =
pkgs.haskell.lib.overrideCabal
(haskellPackagesNew.callCabal2nix "nix-derivation" ./. { })
(_: {
# withBenchmarkDepends = true;
}
);
};
};
};
};
pkgs =
import <nixpkgs> { inherit config; };
in
{ nix-derivation = pkgs.haskellPackages.nix-derivation;
}