librandombytes: added update script
This commit is contained in:
parent
894143a94e
commit
d2f8b2670f
@ -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"
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = {
|
||||
homepage = "https://randombytes.cr.yp.to/";
|
||||
description = "A simple API for applications generating fresh randomness";
|
||||
|
11
pkgs/by-name/li/librandombytes/update.sh
Executable file
11
pkgs/by-name/li/librandombytes/update.sh
Executable 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"
|
||||
|
Loading…
Reference in New Issue
Block a user