From 62be37ac4b3646a9bc4adaf331d82391b444968a Mon Sep 17 00:00:00 2001 From: isabel Date: Tue, 14 May 2024 00:17:51 +0100 Subject: [PATCH] nixdoc: init at 3.0.2 --- pkgs/by-name/ni/nixdoc/default.nix | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/ni/nixdoc/default.nix diff --git a/pkgs/by-name/ni/nixdoc/default.nix b/pkgs/by-name/ni/nixdoc/default.nix new file mode 100644 index 0000000..e1e7f19 --- /dev/null +++ b/pkgs/by-name/ni/nixdoc/default.nix @@ -0,0 +1,33 @@ +{ + lib, + stdenv, + fetchFromGitHub, + rustPlatform, + darwin, +}: let + version = "3.0.2"; +in + rustPlatform.buildRustPackage { + pname = "nixdoc"; + inherit version; + + src = fetchFromGitHub { + owner = "nix-community"; + repo = "nixdoc"; + rev = "v${version}"; + sha256 = "sha256-V3MAvbdYk3DL064UYcJE9HmwfQBwpMxVXWiAKX6honA="; + }; + + cargoHash = "sha256-RFxTjLiJCEc42Mb8rcayOFHkYk2GfpgsO3+hAaRwHgs="; + + buildInputs = lib.optionals stdenv.isDarwin [darwin.Security]; + + meta = { + description = "Generate documentation for Nix functions"; + mainProgram = "nixdoc"; + homepage = "https://github.com/nix-community/nixdoc"; + license = lib.licenses.gpl3; + # maintainers = with lib.maintainers; [ infinisil hsjobeki ]; + platforms = lib.platforms.unix; + }; + }