Created
March 5, 2019 10:06
-
-
Save bradparker/4888ce93921a636d803b811948602ee3 to your computer and use it in GitHub Desktop.
Minimal Miso default nix file
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; | |
# 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]; | |
}; | |
in | |
nixpkgs.haskell.packages.ghcjs.callCabal2nix "example-app" ./. {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment