diff options
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -8,10 +8,17 @@ let sleep 3 done ''); + + shellMake = pkgs.writeScriptBin "make" '' + rootdir="$(${pkgs.git}/bin/git rev-parse --show-toplevel)" + [[ -z "$rootdir" ]] && { echo "Not in a git repo"; exit 1; } + ${pkgs.gnumake}/bin/make -C "$rootdir" $* + ''; in pkgs.mkShell { buildInputs = with pkgs; [ watchscript + shellMake zola ]; } |