librandombytes: added update script (#339583)

authored by Colin and committed by GitHub 62594298 9bd0271b

+13
+2
pkgs/by-name/li/librandombytes/package.nix
··· 51 install_name_tool -change "librandombytes-kernel.1.dylib" "$out/lib/librandombytes-kernel.1.dylib" "$out/bin/randombytes-info" 52 ''; 53 54 meta = { 55 homepage = "https://randombytes.cr.yp.to/"; 56 description = "A simple API for applications generating fresh randomness";
··· 51 install_name_tool -change "librandombytes-kernel.1.dylib" "$out/lib/librandombytes-kernel.1.dylib" "$out/bin/randombytes-info" 52 ''; 53 54 + passthru.updateScript = ./update.sh; 55 + 56 meta = { 57 homepage = "https://randombytes.cr.yp.to/"; 58 description = "A simple API for applications generating fresh randomness";
+11
pkgs/by-name/li/librandombytes/update.sh
···
··· 1 + #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p curl cacert nix common-updater-scripts --pure 3 + #shellcheck shell=bash 4 + 5 + set -eu -o pipefail 6 + 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)" 9 + 10 + update-source-version librandombytes "$version" 11 +