privatebin: always update to latest release (#462261)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
5
pkgs/by-name/pr/privatebin/update.sh
Executable file
5
pkgs/by-name/pr/privatebin/update.sh
Executable 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
|
||||
Reference in New Issue
Block a user