38 lines
1.2 KiB
Nix
38 lines
1.2 KiB
Nix
{ nixpkgs }:
|
|
let
|
|
nixpkgs-src = nixpkgs.fetchFromGitHub {
|
|
owner = "NixOS";
|
|
repo = "nixpkgs";
|
|
rev = "3fd87ad0073fd1ef71a8fcd1a1d1a89392c33d0a";
|
|
sha256 = "0n4ffwwfdybphx1iyqz1p7npk8w4n78f8jr5nq8ldnx2amrkfwhl";
|
|
};
|
|
|
|
config = {
|
|
packageOverrides = pkgs: rec {
|
|
haskell = pkgs.haskell // {
|
|
packages = pkgs.haskell.packages // {
|
|
ghc = pkgs.haskell.packages.ghc844;
|
|
} // {
|
|
|
|
# Many packages don't build on ghcjs because of a dependency on doctest
|
|
# (which doesn't build), or because of a runtime error during the test run.
|
|
# See: https://github.com/ghcjs/ghcjs/issues/711
|
|
ghcjs = pkgs.haskell.packages.ghcjs84.override {
|
|
overrides = self: super: with pkgs.haskell.lib; {
|
|
tasty-quickcheck = dontCheck super.tasty-quickcheck;
|
|
http-types = dontCheck super.http-types;
|
|
comonad = dontCheck super.comonad;
|
|
semigroupoids = dontCheck super.semigroupoids;
|
|
lens = dontCheck super.lens;
|
|
servant = dontCheck super.servant;
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
};
|
|
};
|
|
|
|
in
|
|
import nixpkgs-src { inherit config; }
|