btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / librandombytes / update.sh
blob6a19e7b565253f51b3810eb58788bb585e83d141
1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p curl cacert nix common-updater-scripts --pure
3 #shellcheck shell=bash
5 set -eu -o pipefail
7 # upstream doesn't use git, but has this file specifically for versioning
8 version="$(curl https://randombytes.cr.yp.to/librandombytes-latest-version.txt)"
10 update-source-version librandombytes "$version"