aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix29
1 files changed, 17 insertions, 12 deletions
diff --git a/default.nix b/default.nix
index 155cee9..cde6a42 100644
--- a/default.nix
+++ b/default.nix
@@ -1,13 +1,18 @@
-with import <nixpkgs> {}; {
- env = stdenv.mkDerivation {
- name = "env";
- buildInputs = [
- cabal-install
- nodePackages.nodemon
- nodejs-8_x
- tmux
- tmuxinator
- zlib
- ];
- };
+with (import <nixpkgs> {});
+
+haskell.lib.buildStackProject {
+ name = "myenv";
+
+ buildInputs = [
+ zlib
+ stack
+ nodePackages.nodemon
+ tmux
+ tmuxinator
+ nodejs-8_x
+ ];
+
+ shellHook = ''
+ export PATH=node_modules/.bin:$PATH;
+ '';
}