From 5fdb2740237569fd1250f5bbf643d4dd1e86bba9 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 11 Jun 2018 23:28:38 +0000 Subject: [PATCH] add nix expression --- shell.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..694bbc2 --- /dev/null +++ b/shell.nix @@ -0,0 +1,27 @@ +{ pkgs ? import {}, mode ? "shell" }: + +with pkgs.lib; + +let + +modes = { + shell = "exec fish"; + test = "npm test"; + run = "exec bin/hubot -a matrix"; +}; + +in pkgs.stdenv.mkDerivation rec { + name = "asjon-dev"; + source = "."; + + buildInputs = with pkgs; [ + nodejs nodePackages.coffee-script + openssh graphicsmagick + ]; + + shellHook = environment + getAttr mode modes; + environment = '' + #set env variables here + export AUTO_KILL_ON_UPDATE=1 + ''; +}