mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
lnl: add pr-darwin alias
This commit is contained in:
parent
c2a0025f7a
commit
ada37dc2b3
1 changed files with 4 additions and 0 deletions
|
@ -226,6 +226,10 @@
|
|||
nix log "$(curl -f -H 'Content-Type: application/json' "$build/api/get-info" | jq -r .drvPath)"
|
||||
}
|
||||
|
||||
pr-darwin() {
|
||||
echo "https://github.com/LnL7/nix-darwin/archive/$(curl "https://api.github.com/repos/LnL7/nix-darwin/pulls/$@/commits" | jq -r '.[-1].sha').tar.gz"
|
||||
}
|
||||
|
||||
pr-nixpkgs() {
|
||||
echo "https://github.com/NixOS/nixpkgs/archive/$(curl "https://api.github.com/repos/NixOS/nixpkgs/pulls/$@/commits" | jq -r '.[-1].sha').tar.gz"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue