Skip to content

Instantly share code, notes, and snippets.

@mjrosenb
Created June 15, 2019 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjrosenb/d79e861f9eba854a9ac672e61f9226d1 to your computer and use it in GitHub Desktop.
Save mjrosenb/d79e861f9eba854a9ac672e61f9226d1 to your computer and use it in GitHub Desktop.
let
overlay = self: super:
{
haskell = super.haskell // {
packages = super.haskell.packages // {
ghcjs = super.haskell.packages.ghcjs.extend (hself: hsuper: {
# Doctest fails to build with a strange error.
doctest = null;
# These require doctest to run their tests.
http-types = super.haskell.lib.dontCheck hsuper.http-types;
servant = super.haskell.lib.dontCheck hsuper.servant;
lens = super.haskell.lib.dontCheck hsuper.lens;
comonad = super.haskell.lib.dontCheck hsuper.comonad;
semigroupoids = super.haskell.lib.dontCheck hsuper.semigroupoids;
# These have test suites which hang indefinitely.
scientific = super.haskell.lib.dontCheck hsuper.scientific;
tasty-quickcheck = super.haskell.lib.dontCheck hsuper.tasty-quickcheck;
});
};
};
};
nixpkgs-source = builtins.fetchTarball {
url = "https://releases.nixos.org/nixos/18.09/nixos-18.09.1922.97e0d53d669/nixexprs.tar.xz";
sha256 = "0jl72zcsap4xjh483mjyvhmim45ghklw3pqr8mp0khwvh83422z6";
};
nixpkgs = import nixpkgs-source {
overlays = [overlay];
};
deps = hs: [ hs.template-haskell hs.miso hs.aeson hs.aeson-pretty hs.list-t hs.mtl hs.lens];
ghc = nixpkgs.haskell.packages.ghc863.ghcWithPackages deps;
ghcjs = nixpkgs.haskell.packages.ghcjs.ghcWithPackages deps;
in nixpkgs.stdenv.mkDerivation {
name = "both";
buildInputs = [ ghc ghcjs ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment