git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
adding support for building using nix
commit1bbd16ec6109b685bef55a28fc30bfacf3701f6a authorBrandon Elam Barker <beb82@cornell.edu> dateThu 4 Apr 2019, 01:36 (8 years ago) parent7323d52
3 files changed+14−1
.gitignore+1 stack.nix+8 stack.yaml+5−1
.gitignore+1
@@ -12,6 +12,7 @@ cabal.sandbox.config
1212.test_modules/
1313bower_components/
1414node_modules
15+pscpp.cabal
1516tmp/
1617.stack-work/
1718output
stack.nixnew file+8
@@ -0,0 +1,8 @@
1+{ pkgs ? import <nixpkgs> {}, ghc ? pkgs.ghc }:
2+
3+pkgs.haskell.lib.buildStackProject {
4+ name = "default-stack-shell";
5+ inherit ghc;
6+ buildInputs = with pkgs; [git git-lfs gmp zlib];
7+ LANG = "en_US.UTF-8";
8+}
stack.yaml+5−1
@@ -66,4 +66,8 @@ extra-deps:
6666# extra-lib-dirs: [/path/to/dir]
6767#
6868# Allow a newer minor version of GHC than the snapshot specifies
69−# compiler-check: newer-minor
69+# compiler-check: newer-minor
70+
71+nix:
72+ shell-file: stack.nix
73+