Skip to content

Instantly share code, notes, and snippets.

@bradparker
Created March 5, 2019 10:06
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 bradparker/4888ce93921a636d803b811948602ee3 to your computer and use it in GitHub Desktop.
Save bradparker/4888ce93921a636d803b811948602ee3 to your computer and use it in GitHub Desktop.
Minimal Miso default nix file
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