Last active
August 25, 2018 08:19
-
-
Save fooblahblah/efacca694086315b2aa8 to your computer and use it in GitHub Desktop.
Nix shell definition for Purescript
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
with import <nixpkgs> {}; let | |
runtimeLibs = [ gmp nodejs haskellPackages.stack ghc ncurses ]; | |
libPaths = map (x: ":${x}/lib") runtimeLibs; | |
in rec { | |
env = stdenv.mkDerivation { | |
name = "purescript"; | |
buildInputs = [ stdenv haskellPackages.stack ghc ncurses ]; | |
LD_LIBRARY_PATH = lib.foldl (x: y: x + y) "" libPaths; | |
shellHook = '' | |
export PATH=$PATH:$HOME/.local/bin/ | |
''; | |
}; | |
} |
Author
fooblahblah
commented
Dec 23, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment