diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-17 14:49:27 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-17 14:49:27 +0200 |
| commit | 7271be33d665b7ec3f5cabc3fa026895644a658e (patch) | |
| tree | eefcf4eff8aaddcb63c65b565f7c2ae9f6cda3b8 /pkgs | |
| parent | hosts/tiamat: Vendor the legacy disk module (diff) | |
| download | nixos-config-7271be33d665b7ec3f5cabc3fa026895644a658e.zip | |
pkgs/sw: Build nix packages before swallowing
Diffstat (limited to '')
| -rwxr-xr-x | pkgs/by-name/sw/sw/sw.sh | 4 |
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" ;; *) |
