aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-17 14:49:27 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-17 14:49:27 +0200
commit7271be33d665b7ec3f5cabc3fa026895644a658e (patch)
treeeefcf4eff8aaddcb63c65b565f7c2ae9f6cda3b8
parenthosts/tiamat: Vendor the legacy disk module (diff)
downloadnixos-config-7271be33d665b7ec3f5cabc3fa026895644a658e.zip
pkgs/sw: Build nix packages before swallowing
Diffstat (limited to '')
-rwxr-xr-xpkgs/by-name/sw/sw/sw.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/by-name/sw/sw/sw.sh b/pkgs/by-name/sw/sw/sw.sh
index a62bfcbb..f71f65ee 100755
--- a/pkgs/by-name/sw/sw/sw.sh
+++ b/pkgs/by-name/sw/sw/sw.sh
@@ -35,6 +35,10 @@ else
printf "sw: --nix requires a nix installible\n"
exit 2
}
+
+ # Build it first, so the user still sees a progress bar
+ nix build --no-link "n#$1"
+
swallow nix run "n#$1"
;;
*)