2019-06-16 21:59:06 +02:00
|
|
|
{ stdenv, fetchFromGitHub, 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";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin [ darwin.Security ];
|
|
|
|
|
2019-05-25 13:03:08 +02:00
|
|
|
cargoSha256 = "1hy8w73fir4wnqx7zfvfqh7s24w95x9nkw55kmizvrwf0glw9m4n";
|
2018-10-28 18:46:16 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Generate documentation for Nix functions";
|
|
|
|
homepage = https://github.com/tazjin/nixdoc;
|
|
|
|
license = [ licenses.gpl3 ];
|
|
|
|
maintainers = [ maintainers.tazjin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|