diff options
author | tv <tv@krebsco.de> | 2017-06-28 03:31:14 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-06-28 03:31:14 +0200 |
commit | 10adb2d27e3005c7239585eb38dbbe3b5b01a400 (patch) | |
tree | 276d52571951ae0575cf10b4a4b249bdb2493d52 /krebs/5pkgs/simple | |
parent | 62e50105badbe23a3e448d8ca9f5770f7698b22b (diff) |
whatsupnix: use gawk and nix-store explicitly
Diffstat (limited to 'krebs/5pkgs/simple')
-rw-r--r-- | krebs/5pkgs/simple/whatsupnix/whatsupnix.bash | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/krebs/5pkgs/simple/whatsupnix/whatsupnix.bash b/krebs/5pkgs/simple/whatsupnix/whatsupnix.bash index 042763048..127209570 100644 --- a/krebs/5pkgs/simple/whatsupnix/whatsupnix.bash +++ b/krebs/5pkgs/simple/whatsupnix/whatsupnix.bash @@ -17,15 +17,12 @@ # 2 Build error; at least one failed derivation could be found. # -GAWK=${GAWK:-gawk} -NIX_STORE=${NIX_STORE:-nix-store} - failed_drvs=$(mktemp --tmpdir whatsupnix.XXXXXXXX) trap 'rm -f -- "$failed_drvs"' EXIT exec >&2 -$GAWK -v failed_drvs="$failed_drvs" ' +gawk -v failed_drvs="$failed_drvs" ' match($0, /^builder for ‘(\/nix\/store\/[^’]+\.drv)’ failed/, m) { print m[1] >> failed_drvs } @@ -35,7 +32,7 @@ $GAWK -v failed_drvs="$failed_drvs" ' case $# in 0) print_log() { - NIX_PAGER= $NIX_STORE -l "$1" + NIX_PAGER= nix-store -l "$1" } ;; 1) |