Created
June 15, 2019 18:55
-
-
Save mjrosenb/d79e861f9eba854a9ac672e61f9226d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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