radicle-httpd: use fetchFromRadicle

This commit is contained in:
Defelo
2025-08-17 03:49:33 +02:00
parent 036be6edba
commit 1ddbbb1671
2 changed files with 9 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
{
radicle-httpd,
fetchFromGitHub,
fetchgit,
lib,
buildNpmPackage,
writeText,
@@ -75,9 +74,9 @@ lib.fix (
# 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 = fetchgit {
inherit (radicle-httpd.src) url rev;
src = radicle-httpd.src.override {
hash = "sha256-1OhZ0x21NlZIiTPCRpvdUsx5UmeLecTjVzH8DWllPr8=";
sparseCheckout = [ ];
};
postPatch = ''

View File

@@ -1,6 +1,6 @@
{
asciidoctor,
fetchgit,
fetchFromRadicle,
git,
installShellFiles,
lib,
@@ -16,11 +16,13 @@ rustPlatform.buildRustPackage rec {
env.RADICLE_VERSION = version;
# You must update the radicle-explorer source hash when changing this.
src = fetchgit {
url = "https://seed.radicle.xyz/z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git";
rev = "refs/namespaces/z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM/refs/tags/v${version}";
hash = "sha256-9rJH4ECqOJ9wnYxCbEFHXo3PlhbPdeOnF+Pf1MzX25c=";
src = fetchFromRadicle {
seed = "seed.radicle.xyz";
repo = "z4V1sjrXqjvFdnCUbxPFqd5p4DtH5";
node = "z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM";
tag = "v${version}";
sparseCheckout = [ "radicle-httpd" ];
hash = "sha256-9rJH4ECqOJ9wnYxCbEFHXo3PlhbPdeOnF+Pf1MzX25c=";
};
sourceRoot = "${src.name}/radicle-httpd";