1
0
Fork 0
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:
Daiderd Jordan 2018-01-10 19:45:40 +01:00
parent c2a0025f7a
commit ada37dc2b3
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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"
}