nixpkgs/pkgs/tools/nix/nixdoc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
716 B
Nix
Raw Normal View History

2023-07-25 16:12:18 +00:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin }:
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";
src = fetchFromGitHub {
owner = "nix-community";
2023-07-29 12:23:09 +00:00
repo = "nixdoc";
rev = "v${version}";
2023-07-29 12:23:09 +00:00
sha256 = "sha256-cEMehtxkqXAar/fDy3CnzsDEAuC1ABBaYqzqVBGnTrs=";
};
2023-07-29 12:23:09 +00:00
cargoHash = "sha256-QFDHIqXyTWTdqNrLcwWw3plX6EDH/k043nay5opjtws=";
2023-07-29 12:23:09 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ darwin.Security ];
meta = with lib; {
description = "Generate documentation for Nix functions";
homepage = "https://github.com/nix-community/nixdoc";
license = [ licenses.gpl3 ];
maintainers = [ maintainers.asymmetric ];
platforms = platforms.unix;
};
}