pocket-updater-utility: remove update.sh script and use nix-update-script
This commit is contained in:
parent
bdc31fce2a
commit
50948fda77
2 changed files with 4 additions and 16 deletions
|
@ -7,17 +7,18 @@
|
|||
, openssl ? pkgs.openssl
|
||||
, zlib ? pkgs.zlib
|
||||
, hostPlatform ? stdenv.hostPlatform
|
||||
, nix-update-script ? stdenv.nix-update-script
|
||||
}:
|
||||
|
||||
buildDotnetModule rec {
|
||||
pname = "pocket-updater-utility";
|
||||
version = "2.36.2";
|
||||
version = "2.37.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mattpannella";
|
||||
repo = "${pname}";
|
||||
rev = "${version}";
|
||||
hash = "sha256-W+7qN898+GbbvPgITXaRoFNuNL/2K8isbraQFWxRXuk=";
|
||||
hash = "sha256-J9FYmoUNkMhLWsRCf64qBDAJaP8AIWGcuH0UjWx90ls=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
@ -49,7 +50,7 @@ buildDotnetModule rec {
|
|||
dotnet-runtime = dotnetCorePackages.runtime_6_0;
|
||||
|
||||
passthru = {
|
||||
updateScript = ./update.sh;
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p curl jq common-updater-scripts
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
TARGET_VERSION=$(curl -s "https://api.github.com/repos/mattpannella/pocket-updater-utility/releases?per_page=1" | jq -r '.[0].tag_name')
|
||||
|
||||
if [[ "$UPDATE_NIX_OLD_VERSION" == "$TARGET_VERSION" ]]; then
|
||||
echo "pocket-updater-utility is up-to-date: ${UPDATE_NIX_OLD_VERSION}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
update-source-version pocket-updater-utility "$TARGET_VERSION"
|
Loading…
Reference in a new issue