#!/usr/bin/env bash set -eux set -o pipefail githubToken=$(pass julm/github.com/token/nixpkgs-patches.sh) { echo '[' for pr in \ 83904 \ 93305_ \ 93293_ \ 93457_ \ 93659 \ 93629 \ 94938 \ 96655 \ 97740 \ 98455 \ 98734 \ 101071_ \ 104457 \ 104460 \ ; do PR=${pr%_} test $PR = $pr || echo '/*' sha256=$(nix-prefetch-url --type sha256 https://github.com/NixOS/nixpkgs/pull/$PR.diff) # Token generated on https://github.com/settings/tokens info=$(curl -Ls -H "Authorization: token $githubToken" \ https://api.github.com/repos/NixOS/nixpkgs/pulls/$PR) description=$(printf %s "$info" | jq --raw-output .title) cat <"${0%.sh}".nix