2019-06-16 19:59:06 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, darwin }:
|
2018-10-28 17:46:16 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "nixdoc";
|
2018-10-28 17:46:16 +00:00
|
|
|
version = "1.0.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tazjin";
|
|
|
|
repo = "nixdoc";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "14d4dq06jdqazxvv7fq5872zy0capxyb0fdkp8qg06gxl1iw201s";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin [ darwin.Security ];
|
|
|
|
|
2020-02-16 21:05:21 +00:00
|
|
|
cargoSha256 = "1vamwynkbnffs8ryr2zb1a41cymjvr8zzh1bifyh9hpkx2k11rs3";
|
2018-10-28 17:46:16 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Generate documentation for Nix functions";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/tazjin/nixdoc";
|
2018-10-28 17:46:16 +00:00
|
|
|
license = [ licenses.gpl3 ];
|
|
|
|
maintainers = [ maintainers.tazjin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|