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-07-01 15:47:52 +00:00
|
|
|
version = "3.0.7";
|
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-07-01 15:47:52 +00:00
|
|
|
sha256 = "sha256-9gBrFudzn75rzx7bTPgr+zzUpX2cLHOmE12xFtoH1eA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
cargoHash = "sha256-/f67AhaNLHS/3veAzNZwYujMMM/Vmq/U4MHNHvfRoBE=";
|
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";
|
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;
|
|
|
|
};
|
|
|
|
}
|