Skip to content

Instantly share code, notes, and snippets.

@fooblahblah
Last active August 25, 2018 08:19
Show Gist options
  • Save fooblahblah/efacca694086315b2aa8 to your computer and use it in GitHub Desktop.
Save fooblahblah/efacca694086315b2aa8 to your computer and use it in GitHub Desktop.
Nix shell definition for Purescript
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/
'';
};
}
@fooblahblah
Copy link
Author

# from dir with default.nix
$ nix-shell .
# First time install
$ stack --no-install-ghc install purescript
# Install pulp
$ npm install pulp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment