summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngolf Wanger <contact@ingolf-wagner.de>2019-05-23 14:36:34 +0200
committerIngolf Wanger <contact@ingolf-wagner.de>2019-05-23 14:37:03 +0200
commitbb07c01d5e36fa607bc1df300826438850f0a1a1 (patch)
treeae3ab02d0e38a9738ce1a5274648bfeb78bdecde
parent26f77b14c839e9a3baeb847ca12892215f057a6d (diff)
web/shell.nix : add a first sketch
-rw-r--r--README.md1
-rw-r--r--web/shell.nix32
2 files changed, 33 insertions, 0 deletions
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 <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
+ '';
+
+}
+