radicle-httpd: use fetchFromRadicle

Defelo 1ddbbb16 036be6ed

+9 -8
+2 -3
pkgs/by-name/ra/radicle-explorer/package.nix
··· 1 1 { 2 2 radicle-httpd, 3 3 fetchFromGitHub, 4 - fetchgit, 5 4 lib, 6 5 buildNpmPackage, 7 6 writeText, ··· 75 74 # same repo. For this reason we pin the sources to each other, but due to 76 75 # radicle-httpd using a more limited sparse checkout we need to carry a 77 76 # separate hash. 78 - src = fetchgit { 79 - inherit (radicle-httpd.src) url rev; 77 + src = radicle-httpd.src.override { 80 78 hash = "sha256-1OhZ0x21NlZIiTPCRpvdUsx5UmeLecTjVzH8DWllPr8="; 79 + sparseCheckout = [ ]; 81 80 }; 82 81 83 82 postPatch = ''
+7 -5
pkgs/by-name/ra/radicle-httpd/package.nix
··· 1 1 { 2 2 asciidoctor, 3 - fetchgit, 3 + fetchFromRadicle, 4 4 git, 5 5 installShellFiles, 6 6 lib, ··· 16 16 env.RADICLE_VERSION = version; 17 17 18 18 # 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}"; 23 24 sparseCheckout = [ "radicle-httpd" ]; 25 + hash = "sha256-9rJH4ECqOJ9wnYxCbEFHXo3PlhbPdeOnF+Pf1MzX25c="; 24 26 }; 25 27 26 28 sourceRoot = "${src.name}/radicle-httpd";