diff --git a/pkgs/by-name/hi/hifile/package.nix b/pkgs/by-name/hi/hifile/package.nix index a57e4d65794f..2feeef5c1829 100644 --- a/pkgs/by-name/hi/hifile/package.nix +++ b/pkgs/by-name/hi/hifile/package.nix @@ -2,15 +2,16 @@ lib, appimageTools, fetchurl, + version ? "0.9.9.23", + hash ? "sha256-BTHiLTgLqtUCuxnpPeI5nwe8tYMp+uxFKm01qHnC8A0=", }: let - version = "0.9.9.19"; pname = "hifile"; src = fetchurl { url = "https://www.hifile.app/files/HiFile-${version}.AppImage"; - hash = "sha256-WrPNH7N8nYr/zd6RGsX3mL1P+nYUzXMPgIoBtC6tGo0="; + inherit hash; }; appimageContents = appimageTools.extractType2 { diff --git a/pkgs/by-name/hi/hifile/update.sh b/pkgs/by-name/hi/hifile/update.sh index 95a0ae8440db..e65e3cb7f7f6 100755 --- a/pkgs/by-name/hi/hifile/update.sh +++ b/pkgs/by-name/hi/hifile/update.sh @@ -1,5 +1,5 @@ #!/usr/bin/env nix-shell -#!nix-shell -I nixpkgs=./. -i bash -p curl common-updater-scripts +#!nix-shell -I nixpkgs=./. -i bash -p curl nix-update latestVersion=$(curl -s "https://www.hifile.app/otherdownloads" | grep -A 10 '

All downloads

' | grep -m 1 '
  • .*AppImage.*' | sed -n 's/.*HiFile-\([0-9.]*\)\.AppImage.*/\1/p') currentVersion=$(nix-instantiate --eval -E "with import ./. {}; hifile.version" | tr -d '"') @@ -13,10 +13,4 @@ if [[ "$latestVersion" == "$currentVersion" ]]; then fi -prefetch=$(nix-prefetch-url "https://www.hifile.app/files/HiFile-$latestVersion.AppImage") -hash=$(nix-hash --type sha256 --to-sri "$prefetch") - -update-source-version hifile 0 "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" --system="x86_64-linux" -update-source-version hifile "$latestVersion" "$hash" --system="x86_64-linux" - - +nix-update hifile --version $latestVersion