diff options
author | Ingolf Wanger <contact@ingolf-wagner.de> | 2019-05-23 14:36:34 +0200 |
---|---|---|
committer | Ingolf Wanger <contact@ingolf-wagner.de> | 2019-05-23 14:37:03 +0200 |
commit | bb07c01d5e36fa607bc1df300826438850f0a1a1 (patch) | |
tree | ae3ab02d0e38a9738ce1a5274648bfeb78bdecde | |
parent | 26f77b14c839e9a3baeb847ca12892215f057a6d (diff) |
web/shell.nix : add a first sketch
-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 + ''; + +} + |