Skip to content

Instantly share code, notes, and snippets.

@evanjs
Last active May 17, 2020 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanjs/37ded62919a7f5fe590cf967f63579b3 to your computer and use it in GitHub Desktop.
Save evanjs/37ded62919a7f5fe590cf967f63579b3 to your computer and use it in GitHub Desktop.
use HEAD of PR for nixpkgs and run nix build
PR="${1-77714}"
PACKAGE="${2-pillow}"
nix build -I nixpkgs="https://github.com/nixos/nixpkgs/tarball/$(curl https://api.github.com/repos/nixos/nixpkgs/pulls/$PR/commits | jq -r '.[-1]'.sha)" nixpkgs.$PACKAGE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment