2023-07-25 16:12:18 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin }:
|
2018-10-28 17:46:16 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "nixdoc";
|
2024-05-21 19:07:20 +00:00
|
|
|
version = "3.0.5";
|
2018-10-28 17:46:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-03-25 20:38:26 +00:00
|
|
|
owner = "nix-community";
|
2023-07-29 12:23:09 +00:00
|
|
|
repo = "nixdoc";
|
2018-10-28 17:46:16 +00:00
|
|
|
rev = "v${version}";
|
2024-05-21 19:07:20 +00:00
|
|
|
sha256 = "sha256-6aPfpkcUoAYaGYqBPFJJQvQ9dMGne9TWJ2HAx95JujY=";
|
2018-10-28 17:46:16 +00:00
|
|
|
};
|
|
|
|
|
2024-05-21 19:07:20 +00:00
|
|
|
cargoHash = "sha256-5bWP8dhApnQyK/gQNkPrLeqFvRVbSlVNRG6pRDb/fdk=";
|
2022-12-23 19:57:19 +00:00
|
|
|
|
2023-07-29 12:23:09 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ darwin.Security ];
|
2018-10-28 17:46:16 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-28 17:46:16 +00:00
|
|
|
description = "Generate documentation for Nix functions";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "nixdoc";
|
2023-03-25 20:38:26 +00:00
|
|
|
homepage = "https://github.com/nix-community/nixdoc";
|
2018-10-28 17:46:16 +00:00
|
|
|
license = [ licenses.gpl3 ];
|
2023-11-18 22:34:52 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
infinisil
|
2024-03-12 09:12:16 +00:00
|
|
|
hsjobeki
|
2023-11-18 22:34:52 +00:00
|
|
|
];
|
2018-10-28 17:46:16 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|