diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | web/shell.nix | 32 |
2 files changed, 33 insertions, 0 deletions
@@ -1,2 +1,3 @@ # nix-shell-mix + A bunch of nix-shell files for inspiration. diff --git a/web/shell.nix b/web/shell.nix new file mode 100644 index 0000000..839f5c0 --- /dev/null +++ b/web/shell.nix @@ -0,0 +1,32 @@ +{ pkgs ? import <nixpkgs> { } }: + +let + + scripts = { + build = pkgs.writeShellScriptBin "build" /* sh */ '' + echo "this could be your buildscript" + ''; + run = pkgs.writeShellScriptBin "run" /* sh */ '' + echo "this could be your run script" + ''; + }; + +in pkgs.mkShell { + + buildInputs = with pkgs; [ + lessc + + script.build + script.run + + elmPackages.elm + elmPackages.elm-format + + ]; + + shellHook = '' + HISTFILE=${toString ./.}/.history + ''; + +} + |