mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
lnl: add rev-nixpkgs helper
This commit is contained in:
parent
64a46b7164
commit
3d7bad57b2
1 changed files with 10 additions and 2 deletions
|
@ -228,12 +228,20 @@
|
|||
nix log "$(curl -f -H 'Content-Type: application/json' "$build/api/get-info" | jq -r .drvPath)"
|
||||
}
|
||||
|
||||
rev-darwin() {
|
||||
echo "https://github.com/LnL7/nix-darwin/archive/''${@:-master}.tar.gz"
|
||||
}
|
||||
|
||||
rev-nixpkgs() {
|
||||
echo "https://github.com/NixOS/nixpkgs/archive/''${@:-master}.tar.gz"
|
||||
}
|
||||
|
||||
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"
|
||||
rev-darwin "$(curl "https://api.github.com/repos/LnL7/nix-darwin/pulls/$@/commits" | jq -r '.[-1].sha')"
|
||||
}
|
||||
|
||||
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"
|
||||
rev-nixpkgs "$(curl "https://api.github.com/repos/NixOS/nixpkgs/pulls/$@/commits" | jq -r '.[-1].sha')"
|
||||
}
|
||||
|
||||
reexec() {
|
||||
|
|
Loading…
Add table
Reference in a new issue