librandombytes: added update script

This commit is contained in:
imad.nyc 2024-09-04 12:47:46 -04:00 committed by Colin
parent 894143a94e
commit d2f8b2670f
2 changed files with 13 additions and 0 deletions

View File

@ -51,6 +51,8 @@ stdenv.mkDerivation (finalAttrs: {
install_name_tool -change "librandombytes-kernel.1.dylib" "$out/lib/librandombytes-kernel.1.dylib" "$out/bin/randombytes-info" install_name_tool -change "librandombytes-kernel.1.dylib" "$out/lib/librandombytes-kernel.1.dylib" "$out/bin/randombytes-info"
''; '';
passthru.updateScript = ./update.sh;
meta = { meta = {
homepage = "https://randombytes.cr.yp.to/"; homepage = "https://randombytes.cr.yp.to/";
description = "A simple API for applications generating fresh randomness"; description = "A simple API for applications generating fresh randomness";

View File

@ -0,0 +1,11 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl cacert nix common-updater-scripts --pure
#shellcheck shell=bash
set -eu -o pipefail
# upstream doesn't use git, but has this file specifically for versioning
version="$(curl https://randombytes.cr.yp.to/librandombytes-latest-version.txt)"
update-source-version librandombytes "$version"