radicle-desktop: 0.8.0 -> 0.9.0, add updateScript (#502966)

This commit is contained in:
nixpkgs-ci[bot]
2026-03-24 09:57:36 +00:00
committed by GitHub
2 changed files with 14 additions and 8 deletions
+9 -8
View File
@@ -25,13 +25,13 @@
rustPlatform.buildRustPackage (finalAttrs: {
pname = "radicle-desktop";
version = "0.8.0";
version = "0.9.0";
src = fetchFromRadicle {
seed = "seed.radicle.xyz";
repo = "z4D5UCArafTzTQpDZNQRuqswh3ury";
rev = "aeb405aaf53b56a426ab8d68c7f89b8953683224";
hash = "sha256-Z/6GdXf3ag/89H8UMD2GNU4CXA8TWyX8dl8uh0CTem8=";
tag = "releases/${finalAttrs.version}";
hash = "sha256-ruBHhJ0JvbtXd0GonL5rNp733mulVSQJsVzkikQKCK0=";
leaveDotGit = true;
postFetch = ''
git -C $out rev-parse --short HEAD > $out/.git_head
@@ -52,7 +52,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
npmDeps = fetchNpmDeps {
inherit (finalAttrs) src;
hash = "sha256-lcSNGmIv6u7DT47lOC69BRbVSK5IPiwjtdAS8aVxwqM=";
hash = "sha256-x0u75on1Kc+u1u1R1SLLOfmTG5kFVvn2PsaWdH/RB3w=";
};
cargoHash = "sha256-z5fnwc7EjSvkyu4zTUyAvVfs6quwH2p9VFDK/TdzZJE=";
@@ -85,9 +85,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
libsoup_3
openssl
]
++ lib.optionals stdenv.hostPlatform.isLinux [
webkitgtk_4_1
];
++ lib.optionals stdenv.hostPlatform.isLinux [ webkitgtk_4_1 ];
preBuild = ''
export GIT_HEAD=$(<$src/.git_head)
@@ -120,7 +118,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
runHook postCheck
'';
passthru.env = finalAttrs.env;
passthru = {
inherit (finalAttrs) env;
updateScript = ./update.sh;
};
meta = {
description = "Radicle desktop app";
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils gnugrep common-updater-scripts nix-update
version=$(list-git-tags | grep -oP '^releases/\K\d+\.\d+\.\d+$' | sort -rV | head -1)
nix-update --version="$version" radicle-desktop