From 23f04635cc26e1b0553088f28553f518488a9fc8 Mon Sep 17 00:00:00 2001 From: Joris Date: Wed, 1 May 2019 15:52:32 +0200 Subject: Setup personal page with Hakyll --- default.nix | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 155cee9..cde6a42 100644 --- a/default.nix +++ b/default.nix @@ -1,13 +1,18 @@ -with import {}; { - env = stdenv.mkDerivation { - name = "env"; - buildInputs = [ - cabal-install - nodePackages.nodemon - nodejs-8_x - tmux - tmuxinator - zlib - ]; - }; +with (import {}); + +haskell.lib.buildStackProject { + name = "myenv"; + + buildInputs = [ + zlib + stack + nodePackages.nodemon + tmux + tmuxinator + nodejs-8_x + ]; + + shellHook = '' + export PATH=node_modules/.bin:$PATH; + ''; } -- cgit v1.2.3