cnsprcy: fix updateScript

This commit is contained in:
Defelo 2025-04-07 23:36:52 +02:00
parent 6d5a5771b5
commit 04e44c5dc2
No known key found for this signature in database
GPG Key ID: 2A05272471204DD3
2 changed files with 8 additions and 3 deletions

View File

@ -22,9 +22,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-8hNuF5tD1PwdIJB0q3wxDOGDcppo0ac+zol3AHWGv0s=";
passthru.updateScript = lib.mkUpdateScript {
extraFetchers = [ fetchFromSourcehut ];
};
passthru.updateScript = ./update.sh;
RUSTC_BOOTSTRAP = true;
buildInputs = [ sqlite ];

View File

@ -0,0 +1,7 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix-update common-updater-scripts gnused
set -euo pipefail
version=$(list-git-tags --url="https://git.sr.ht/~xaos/cnsprcy" | sed -En 's/^cnspr\/v(.*)/\1/p' | tail -1)
nix-update cnsprcy --version="$version"