14 rustPlatform.buildRustPackage rec {
15 pname = "radicle-httpd";
17 env.RADICLE_VERSION = version;
20 url = "https://seed.radicle.xyz/z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git";
21 rev = "refs/namespaces/z6MkkfM3tPXNPrPevKr3uSiQtHPuwnNhu2yUVjgd2jXVsVz5/refs/tags/v${version}";
22 hash = "sha256-XMEO+L362uaPUr25YUkMh41a2BcKEy8bgXfwKlvBtnQ=";
23 sparseCheckout = [ "radicle-httpd" ];
25 sourceRoot = "${src.name}/radicle-httpd";
26 cargoHash = "sha256-WdgPL6X3FMxHW6OVoTkrbo0azAxp35UzGMcTJ5pNnkI=";
33 nativeCheckInputs = [ git ];
34 buildInputs = lib.optionals stdenv.buildPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
36 doCheck = stdenv.hostPlatform.isLinux;
39 for page in $(find -name '*.adoc'); do
40 asciidoctor -d manpage -b manpage $page
41 installManPage ''${page::-5}
46 for program in $out/bin/* ;
48 wrapProgram "$program" \
60 description = "Radicle JSON HTTP API Daemon";
62 A Radicle HTTP daemon exposing a JSON HTTP API that allows someone to browse local
63 repositories on a Radicle node via their web browser.
65 homepage = "https://radicle.xyz";
66 # cargo.toml says MIT and asl20, LICENSE file says GPL3
67 license = with lib.licenses; [
72 platforms = lib.platforms.unix;
73 maintainers = with lib.maintainers; [
77 mainProgram = "radicle-httpd";