This repository has been archived by the owner on Feb 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhaskell.nix
48 lines (36 loc) · 1.54 KB
/
haskell.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
self: super:
let
lib = import ../lib.nix;
stdenv = super.stdenv;
haskellLib = super.haskell.lib;
callHaskellPackage = super.newScope { inherit haskellLib; };
ghc801bin = callHaskellPackage ./pkgs/haskell/8.0.1-binary.nix { };
ghc802From801Binary = callHaskellPackage ./pkgs/haskell/8.0.2.nix {
ghc = ghc801bin;
sphinx = super.pkgs.python27Packages.sphinx;
};
in
rec {
haskell = super.haskell // {
compiler = super.haskell.compiler // {
ghc801Binary = ghc801bin;
};
packages = super.haskell.packages //
(if stdenv.system == "armv7l-linux" || stdenv.system == "aarch64-linux" then {
ghc802 = callHaskellPackage "${lib.fetchNixPkgs}/pkgs/development/haskell-modules" {
ghc = ghc802From801Binary;
compilerConfig = callHaskellPackage "${lib.fetchNixPkgs}/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix" { };
};
} else {});
};
haskellPackages =
with super.pkgs.haskell.lib;
super.haskellPackages.extend (self: super:
{
happy = if stdenv.system == "armv7l-linux" then dontCheck super.happy else super.happy;
hashable = if stdenv.system == "armv7l-linux" then dontCheck super.hashable else super.hashable;
servant-docs = if stdenv.system == "armv7l-linux" then dontCheck super.servant-docs else super.servant-docs;
servant-swagger = if stdenv.system == "armv7l-linux" then dontCheck super.servant-swagger else super.servant-swagger;
swagger2 = if stdenv.system == "armv7l-linux" then dontCheck super.swagger2 else super.swagger2;
});
}