mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-17 05:28:40 +00:00
cnsprcy: fix updateScript
This commit is contained in:
parent
6d5a5771b5
commit
04e44c5dc2
@ -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 ];
|
||||
|
7
pkgs/by-name/cn/cnsprcy/update.sh
Executable file
7
pkgs/by-name/cn/cnsprcy/update.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user