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:
parent
745004a627
commit
2ef2d5bf65
3 changed files with 7 additions and 7 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -20,11 +20,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1745526057,
|
||||
"narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=",
|
||||
"lastModified": 1745930157,
|
||||
"narHash": "sha256-y3h3NLnzRSiUkYpnfvnS669zWZLoqqI6NprtLQ+5dck=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "f771eb401a46846c1aebd20552521b233dd7e18b",
|
||||
"rev": "46e634be05ce9dc6d4db8e664515ba10b78151ae",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -20,9 +20,9 @@ function __yay_rebuild
|
|||
set orig (pwd)
|
||||
cd $flake_path
|
||||
if set -q _flag_trace
|
||||
__yay_run "nh os switch . -- --impure --show-trace"
|
||||
__yay_run "nh os switch .#$host -- --impure --show-trace"
|
||||
else
|
||||
__yay_run "nh os switch . -- --impure"
|
||||
__yay_run "nh os switch .#$host -- --impure"
|
||||
end
|
||||
cd $orig
|
||||
end
|
|
@ -10,8 +10,8 @@ let
|
|||
|
||||
# Copy completions
|
||||
fishCompletions = pkgs.runCommand "yay-fish-completions" { } ''
|
||||
mkdir -p $out/share/fish/completions
|
||||
cp ${../share/fish/completions}/yay.fish $out/share/fish/completions/
|
||||
mkdir -p $out/share/fish/vendor_completions.d
|
||||
cp ${../share/fish/completions}/yay.fish $out/share/fish/vendor_completions.d/
|
||||
'';
|
||||
|
||||
# Create main yay binary that correctly passes args to fish
|
||||
|
|
Loading…
Add table
Reference in a new issue