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-09-19 14:19:46 +00:00
|
|
|
version = "3.0.8";
|
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-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-0tMGTKcuvyDE5281nGCvZKYJKIEAU01G6vV8Fnt/1ZQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-5KV2VDsPmSgrdZIqCuQ5gjgCVs/Ki6uG6GTwjmtKLlQ=";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nixdoc";
|
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
|
2024-04-21 15:54:59 +00:00
|
|
|
hsjobeki
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|