aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"
;;
*)