This repository has been archived by the owner on Nov 26, 2018. It is now read-only.
forked from dhall-lang/dhall-to-cabal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease.nix
56 lines (43 loc) · 1.49 KB
/
release.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
let
fetchNixpkgs = import ./fetchNixpkgs.nix;
nixpkgs = fetchNixpkgs {
rev = "804060ff9a79ceb0925fe9ef79ddbf564a225d47";
sha256 = "01pb6p07xawi60kshsxxq1bzn8a0y4s5jjqvhkwps4f5xjmmwav3";
outputSha256 = "0ga345hgw6v2kzyhvf5kw96hf60mx5pbd9c4qj5q4nan4lr7nkxn";
};
config = {
packageOverrides = pkgs: {
haskellPackages = pkgs.haskellPackages.override {
overrides = self: super: {
text = self.callPackage ./text.nix {};
prettyprinter = self.callPackage ./prettyprinter.nix {};
dhall = super.callPackage ./dhall.nix {};
repline = pkgs.haskell.lib.doJailbreak super.repline;
formatting = super.callPackage ./formatting.nix {};
tasty-hunit = super.callPackage ./tasty-hunit.nix {};
serialise = pkgs.haskell.lib.dontCheck super.serialise;
dhall-to-cabal =
super.callCabal2nix
"dhall-to-cabal"
( import
./cabal-sdist.nix
{ inherit ( pkgs.stdenv ) mkDerivation;
inherit ( pkgs ) cabal-install;
ghc = self.ghcWithPackages (hs: [
(hs.callPackage ./cabal.nix {})
]);
}
./.
)
{
Cabal = self.callPackage ./cabal.nix {};
};
};
};
};
};
pkgs =
import nixpkgs { inherit config; };
in
{ inherit (pkgs.haskellPackages) dhall-to-cabal;
}