sane-scripts: port sane-vpn-up to nix-shell

This commit is contained in:
Colin 2023-06-07 07:24:49 +00:00
parent ff1aece1ed
commit 4a18dfeef3
2 changed files with 7 additions and 1 deletions

View File

@ -286,6 +286,11 @@ let
src = ./src;
pkgs = [ "coreutils-full" "gnugrep" "gnused" "sane-scripts.ip-check" "systemd" ];
};
vpn-up = static-nix-shell.mkBash {
pname = "sane-vpn-up";
src = ./src;
pkgs = [ "coreutils-full" "gnugrep" "gnused" "sane-scripts.ip-check" "systemd" ];
};
};
in
symlinkJoin {

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils-full -p gnugrep -p gnused -p sane-scripts.ip-check -p systemd
# first arg should be the region, e.g. `us` or `ukr`