be4d19ff1a
also updates nixdoc to 2.3.0. the nixdoc update is not a separate commit because that would leave the manual build broken for one commit, potentially breaking bisects and rebases.
25 lines
732 B
Nix
25 lines
732 B
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform, darwin }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "nixdoc";
|
|
version = "2.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = "nixdoc";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-8pp6xlmdb3kZ6unTiO4yRruyEZ//GIHZF1k8f4kQr9Q=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-k8/+BBMjQCsrgCi33fTdiSukaAZlg6XU3NwXaJdGYVw=";
|
|
|
|
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;
|
|
};
|
|
}
|