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";
|
2023-07-29 12:23:09 +00:00
|
|
|
version = "2.4.0";
|
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}";
|
2023-07-29 12:23:09 +00:00
|
|
|
sha256 = "sha256-cEMehtxkqXAar/fDy3CnzsDEAuC1ABBaYqzqVBGnTrs=";
|
2018-10-28 17:46:16 +00:00
|
|
|
};
|
|
|
|
|
2023-07-29 12:23:09 +00:00
|
|
|
cargoHash = "sha256-QFDHIqXyTWTdqNrLcwWw3plX6EDH/k043nay5opjtws=";
|
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";
|
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-03-25 20:38:26 +00:00
|
|
|
maintainers = [ maintainers.asymmetric ];
|
2018-10-28 17:46:16 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|