privatebin: always update to latest release (#462261)

This commit is contained in:
Felix Bargfeldt
2025-11-17 16:58:52 +00:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -3,7 +3,6 @@
stdenvNoCC,
fetchFromGitHub,
nixosTests,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
@@ -26,7 +25,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
passthru = {
tests = nixosTests.privatebin;
updateScript = nix-update-script { };
updateScript = ./update.sh;
};
meta = {

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq nix-update
version=$(curl ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} -sfL "https://api.github.com/repos/PrivateBin/PrivateBin/releases/latest" | jq -r .tag_name)
nix-update --version="$version" privatebin