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