Skip to content

Commit 1ddbbb1

Browse files
committed
radicle-httpd: use fetchFromRadicle
1 parent 036be6e commit 1ddbbb1

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

pkgs/by-name/ra/radicle-explorer/package.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
radicle-httpd,
33
fetchFromGitHub,
4-
fetchgit,
54
lib,
65
buildNpmPackage,
76
writeText,
@@ -75,9 +74,9 @@ lib.fix (
7574
# same repo. For this reason we pin the sources to each other, but due to
7675
# radicle-httpd using a more limited sparse checkout we need to carry a
7776
# separate hash.
78-
src = fetchgit {
79-
inherit (radicle-httpd.src) url rev;
77+
src = radicle-httpd.src.override {
8078
hash = "sha256-1OhZ0x21NlZIiTPCRpvdUsx5UmeLecTjVzH8DWllPr8=";
79+
sparseCheckout = [ ];
8180
};
8281

8382
postPatch = ''

pkgs/by-name/ra/radicle-httpd/package.nix

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
asciidoctor,
3-
fetchgit,
3+
fetchFromRadicle,
44
git,
55
installShellFiles,
66
lib,
@@ -16,11 +16,13 @@ rustPlatform.buildRustPackage rec {
1616
env.RADICLE_VERSION = version;
1717

1818
# You must update the radicle-explorer source hash when changing this.
19-
src = fetchgit {
20-
url = "https://seed.radicle.xyz/z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git";
21-
rev = "refs/namespaces/z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM/refs/tags/v${version}";
22-
hash = "sha256-9rJH4ECqOJ9wnYxCbEFHXo3PlhbPdeOnF+Pf1MzX25c=";
19+
src = fetchFromRadicle {
20+
seed = "seed.radicle.xyz";
21+
repo = "z4V1sjrXqjvFdnCUbxPFqd5p4DtH5";
22+
node = "z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM";
23+
tag = "v${version}";
2324
sparseCheckout = [ "radicle-httpd" ];
25+
hash = "sha256-9rJH4ECqOJ9wnYxCbEFHXo3PlhbPdeOnF+Pf1MzX25c=";
2426
};
2527

2628
sourceRoot = "${src.name}/radicle-httpd";

0 commit comments

Comments
 (0)