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

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

30 lines
774 B
Nix
Raw Permalink 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";
2024-05-21 19:07:20 +00:00
version = "3.0.5";
src = fetchFromGitHub {
owner = "nix-community";
2023-07-29 12:23:09 +00:00
repo = "nixdoc";
rev = "v${version}";
2024-05-21 19:07:20 +00:00
sha256 = "sha256-6aPfpkcUoAYaGYqBPFJJQvQ9dMGne9TWJ2HAx95JujY=";
};
2024-05-21 19:07:20 +00:00
cargoHash = "sha256-5bWP8dhApnQyK/gQNkPrLeqFvRVbSlVNRG6pRDb/fdk=";
2023-07-29 12:23:09 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ darwin.Security ];
meta = with lib; {
description = "Generate documentation for Nix functions";
mainProgram = "nixdoc";
homepage = "https://github.com/nix-community/nixdoc";
license = [ licenses.gpl3 ];
maintainers = with maintainers; [
infinisil
2024-03-12 09:12:16 +00:00
hsjobeki
];
platforms = platforms.unix;
};
}