cnsprcy: fix updateScript (#396938)

authored by Arne Keller and committed by GitHub e72bf8a6 ac748bb7

+8 -3
+1 -3
pkgs/by-name/cn/cnsprcy/package.nix
··· 22 23 cargoHash = "sha256-8hNuF5tD1PwdIJB0q3wxDOGDcppo0ac+zol3AHWGv0s="; 24 25 - passthru.updateScript = lib.mkUpdateScript { 26 - extraFetchers = [ fetchFromSourcehut ]; 27 - }; 28 29 RUSTC_BOOTSTRAP = true; 30 buildInputs = [ sqlite ];
··· 22 23 cargoHash = "sha256-8hNuF5tD1PwdIJB0q3wxDOGDcppo0ac+zol3AHWGv0s="; 24 25 + passthru.updateScript = ./update.sh; 26 27 RUSTC_BOOTSTRAP = true; 28 buildInputs = [ sqlite ];
+7
pkgs/by-name/cn/cnsprcy/update.sh
···
··· 1 + #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p nix-update common-updater-scripts gnused 3 + 4 + set -euo pipefail 5 + 6 + version=$(list-git-tags --url="https://git.sr.ht/~xaos/cnsprcy" | sed -En 's/^cnspr\/v(.*)/\1/p' | tail -1) 7 + nix-update cnsprcy --version="$version"