on master help sign in
Merge pull request #2914 from DmitryTsygankov/stack_nixos
e81cb80Niklas Larsson
INSTALL.md+8−3
@@ -63,9 +63,9 @@ contribute.
63[Stack](https://github.com/commercialhaskell/stack) is a new
63[Stack](https://github.com/commercialhaskell/stack) is a new
64cross-platform program for developing Haskell projects, that enhances
64cross-platform program for developing Haskell projects, that enhances
65the functionality provided by Cabal. There is experimental support for
65the functionality provided by Cabal. There is experimental support for
66−building Idris from source using with stack, that uses the LTS 3.16
66+building Idris from source with stack.
67−resolver. This installation has been tested on Ubuntu 14.04.2 LTS,
67+This installation has been tested on Ubuntu 14.04.2 LTS, and the current
68−only.
68+NixOS unstable.
69
69
70To build Idris with stack the following commands are recommended:
70To build Idris with stack the following commands are recommended:
71
71
@@ -77,6 +77,11 @@ haven't used stack before this will also setup the related
77infrastructure. For more information about Stack please visit the
77infrastructure. For more information about Stack please visit the
78[Stack website](https://github.com/commercialhaskell/stack).
78[Stack website](https://github.com/commercialhaskell/stack).
79
79
80+On NixOS, please use the following command instead, to make sure
81+the required libraries and header files are available:
82+
83+* `stack build --nix`
84+
80### System GHC
85### System GHC
81
86
82The flag `--system-ghc` can be added to enforce use of your system's
87The flag `--system-ghc` can be added to enforce use of your system's
stack.yaml+4−1
@@ -1,4 +1,4 @@
1−resolver: lts-3.16
1+resolver: lts-4.2
2packages:
2packages:
3- '.'
3- '.'
4flags:
4flags:
@@ -11,3 +11,6 @@ extra-deps:
11- cheapskate-0.1.0.4
11- cheapskate-0.1.0.4
12- hscurses-1.4.2.0
12- hscurses-1.4.2.0
13- libffi-0.1
13- libffi-0.1
14+nix:
15+ enable: false
16+ packages: [ libffi, zlib, ncurses, gmp, pkgconfig ]