2023-08-04 22:07:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nixdoc";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "3.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-07-15 17:15:38 +00:00
|
|
|
owner = "nix-community";
|
2023-08-04 22:07:22 +00:00
|
|
|
repo = "nixdoc";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-PnvVGw0DMBg/l7+QpcXW5AFfR6MeXBiUYdVAZuue1jA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
cargoHash = "sha256-qLTUyhoEVtjgh+ilEv+pQLXLYWlW9gVsCiA5rPfymZY=";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ darwin.Security ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generate documentation for Nix functions";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/nix-community/nixdoc";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = [ licenses.gpl3 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
infinisil
|
|
|
|
asymmetric
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|