[Backport release-26.05] radicle-explorer: decouple src from radicle-httpd; radicle-httpd: 0.25.0 -> 0.26.0 (#543948)

This commit is contained in:
Felix Bargfeldt
2026-07-20 19:22:18 +00:00
committed by GitHub
3 changed files with 26 additions and 19 deletions

View File

@@ -1,9 +1,12 @@
{
lib,
buildNpmPackage,
fetchFromRadicle,
fetchFromGitHub,
radicle-httpd,
writers,
_experimental-update-script-combinators,
unstableGitUpdater,
nix-update-script,
}:
let
@@ -20,18 +23,16 @@ in
buildNpmPackage (finalAttrs: {
pname = "radicle-explorer";
inherit (radicle-httpd) version;
version = "0-unstable-2026-07-16";
# radicle-explorer uses the radicle-httpd API, and they are developed in the
# same repo. For this reason we pin the sources to each other, but due to
# radicle-httpd using a more limited sparse checkout we need to carry a
# separate hash.
src = radicle-httpd.src.override {
hash = "sha256-cnQsPWkRChC8yPrICRoUpGW2GGLB2TK9+3v8ZRGe3x0=";
sparseCheckout = [ ];
src = fetchFromRadicle {
seed = "seed.radicle.dev";
repo = "z4V1sjrXqjvFdnCUbxPFqd5p4DtH5";
rev = "3c2935704f5767d60b3caf609ef772948bbecb10";
hash = "sha256-EpHKuFNgRLwCVdDDRKjPJEvfDpS9qka75B2fQEVc1ns=";
};
npmDepsHash = "sha256-8vmAs788PjdUTaQ5E8YLX0KiIPymJbH51oNaGZACe6I=";
npmDepsHash = "sha256-74r7cyggbuva9XpW++HdAHHFqEBJ6BgNuJJUR+8HE4c=";
postPatch = ''
patchShebangs --build ./scripts
@@ -74,6 +75,11 @@ buildNpmPackage (finalAttrs: {
config:
finalAttrs.finalPackage.overrideAttrs { configFile = writers.writeJSON "config.json" config; };
passthru.updateScript = _experimental-update-script-combinators.sequence [
(unstableGitUpdater { hardcodeZeroVersion = true; })
(nix-update-script { extraArgs = [ "--version=skip" ]; })
];
meta = {
description = "Web frontend for Radicle";
longDescription = ''

View File

@@ -15,22 +15,24 @@
rustPlatform.buildRustPackage (finalAttrs: {
pname = "radicle-httpd";
version = "0.25.0";
version = "0.26.0";
env.RADICLE_VERSION = finalAttrs.version;
# You must update the radicle-explorer source hash when changing this.
src = fetchFromRadicle {
seed = "seed.radicle.dev";
repo = "z4V1sjrXqjvFdnCUbxPFqd5p4DtH5";
tag = "releases/${finalAttrs.version}";
sparseCheckout = [ "radicle-httpd" ];
hash = "sha256-gejNiCQ511OGGItmqXoyB+TmsUw+ozoEmOWooBXBkQ8=";
nonConeMode = true;
sparseCheckout = [
"/crates"
"/Cargo.toml"
"/Cargo.lock"
];
hash = "sha256-zSU8B5IwOEUS9d4Y/UWJ6eD0p3zvp0nWVgJmZ/kVB1Q=";
};
sourceRoot = "${finalAttrs.src.name}/radicle-httpd";
cargoHash = "sha256-Oawin/2R5dZ46pf3SarwNgILF9dXSkw02Z4gYQ4HtzE=";
cargoHash = "sha256-rdW+WLkQ4UEn6hRZfgJhJkJWb7A26MayXVnVwAlLAG8=";
nativeBuildInputs = [
asciidoctor
@@ -78,7 +80,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
repositories on a Radicle node via their web browser.
'';
homepage = "https://radicle.dev";
changelog = "https://radicle.network/nodes/seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/tree/radicle-httpd/CHANGELOG.md";
changelog = "https://radicle.network/nodes/seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/tree/CHANGELOG.md";
# cargo.toml says MIT and asl20, LICENSE file says GPL3
license = with lib.licenses; [
gpl3Only

View File

@@ -3,4 +3,3 @@
version=$(list-git-tags | grep -oP '^releases/\K\d+\.\d+\.\d+$' | sort -rV | head -1)
nix-update --version="$version" radicle-httpd
nix-update --version=skip radicle-explorer