14 rustPlatform.buildRustPackage rec {
15 pname = "radicle-httpd";
17 env.RADICLE_VERSION = version;
19 # You must update the radicle-explorer source hash when changing this.
21 url = "https://seed.radicle.xyz/z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git";
22 rev = "refs/namespaces/z6MkkfM3tPXNPrPevKr3uSiQtHPuwnNhu2yUVjgd2jXVsVz5/refs/tags/v${version}";
23 hash = "sha256-nstyb1rSll3Sl0DlA9JAAwvr6JN8okJ03WoQnE4dXEk=";
24 sparseCheckout = [ "radicle-httpd" ];
27 sourceRoot = "${src.name}/radicle-httpd";
28 cargoHash = "sha256-M4tDtUXS99/Zb1Z71CTdW9gMgRR30rbwA6wK7nlwblQ=";
35 nativeCheckInputs = [ git ];
36 buildInputs = lib.optionals stdenv.buildPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
38 #doCheck = stdenv.hostPlatform.isLinux;
42 for page in $(find -name '*.adoc'); do
43 asciidoctor -d manpage -b manpage $page
44 installManPage ''${page::-5}
49 for program in $out/bin/* ;
51 wrapProgram "$program" \
63 description = "Radicle JSON HTTP API Daemon";
65 A Radicle HTTP daemon exposing a JSON HTTP API that allows someone to browse local
66 repositories on a Radicle node via their web browser.
68 homepage = "https://radicle.xyz";
69 # cargo.toml says MIT and asl20, LICENSE file says GPL3
70 license = with lib.licenses; [
75 platforms = lib.platforms.unix;
76 maintainers = with lib.maintainers; [
80 mainProgram = "radicle-httpd";