Updates host switch and completions paths

• Adjusts rebuild command in shell function to include host specification more directly
• Moves fish completions file to the vendor completions directory
This commit is contained in:
Chris Toph 2025-04-29 23:16:09 -04:00
parent 745004a627
commit 2ef2d5bf65
3 changed files with 7 additions and 7 deletions

6
flake.lock generated
View file

@ -20,11 +20,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1745526057, "lastModified": 1745930157,
"narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=", "narHash": "sha256-y3h3NLnzRSiUkYpnfvnS669zWZLoqqI6NprtLQ+5dck=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f771eb401a46846c1aebd20552521b233dd7e18b", "rev": "46e634be05ce9dc6d4db8e664515ba10b78151ae",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -20,9 +20,9 @@ function __yay_rebuild
set orig (pwd) set orig (pwd)
cd $flake_path cd $flake_path
if set -q _flag_trace if set -q _flag_trace
__yay_run "nh os switch . -- --impure --show-trace" __yay_run "nh os switch .#$host -- --impure --show-trace"
else else
__yay_run "nh os switch . -- --impure" __yay_run "nh os switch .#$host -- --impure"
end end
cd $orig cd $orig
end end

View file

@ -10,8 +10,8 @@ let
# Copy completions # Copy completions
fishCompletions = pkgs.runCommand "yay-fish-completions" { } '' fishCompletions = pkgs.runCommand "yay-fish-completions" { } ''
mkdir -p $out/share/fish/completions mkdir -p $out/share/fish/vendor_completions.d
cp ${../share/fish/completions}/yay.fish $out/share/fish/completions/ cp ${../share/fish/completions}/yay.fish $out/share/fish/vendor_completions.d/
''; '';
# Create main yay binary that correctly passes args to fish # Create main yay binary that correctly passes args to fish