From bb07c01d5e36fa607bc1df300826438850f0a1a1 Mon Sep 17 00:00:00 2001 From: Ingolf Wanger Date: Thu, 23 May 2019 14:36:34 +0200 Subject: web/shell.nix : add a first sketch --- README.md | 1 + web/shell.nix | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 web/shell.nix diff --git a/README.md b/README.md index 1dc0d27..cf60cf0 100644 --- a/README.md +++ b/README.md @@ -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 { } }: + +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 + ''; + +} + -- cgit v1.2.3