2022-12-23 20:57:19 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform, darwin }:
|
2018-10-28 18:46:16 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "nixdoc";
|
2018-10-28 18:46:16 +01:00
|
|
|
version = "1.0.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tazjin";
|
|
|
|
repo = "nixdoc";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "14d4dq06jdqazxvv7fq5872zy0capxyb0fdkp8qg06gxl1iw201s";
|
|
|
|
};
|
|
|
|
|
2022-12-23 20:57:19 +01:00
|
|
|
patches = [
|
|
|
|
# Support nested identifiers https://github.com/nix-community/nixdoc/pull/27
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/nix-community/nixdoc/pull/27/commits/ea542735bf675fe2ccd37edaffb9138d1a8c1b7e.patch";
|
|
|
|
sha256 = "1fmz44jv2r9qsnjxvkkjfb0safy69l4x4vx1g5gisrp8nwdn94rj";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-10-04 17:08:56 +02:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ darwin.Security ];
|
2018-10-28 18:46:16 +01:00
|
|
|
|
2021-05-07 13:00:49 +02:00
|
|
|
cargoSha256 = "1nv6g8rmjjbwqmjkrpqncypqvx5c7xp2zlx5h6rw2j9d1wlys0v5";
|
2018-10-28 18:46:16 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-28 18:46:16 +01:00
|
|
|
description = "Generate documentation for Nix functions";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/tazjin/nixdoc";
|
2018-10-28 18:46:16 +01:00
|
|
|
license = [ licenses.gpl3 ];
|
|
|
|
maintainers = [ maintainers.tazjin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|