2021-01-25 08:26:54 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, boost, nix, pkg-config }:
|
2020-08-12 01:19:11 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nix-doc";
|
|
|
|
version = "0.3.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "lf-";
|
|
|
|
repo = "nix-doc";
|
|
|
|
sha256 = "0vd7159y5w8jjgaw51kfr3z3r50299gvw7vjchpqx3nwmdink8bh";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
buildInputs = [ boost nix ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
cargoSha256 = "1xz3qngs8p0s62dq4d46c01z3k1vvgg856767g56b13c38pzfh28";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-12 01:19:11 +00:00
|
|
|
description = "An interactive Nix documentation tool";
|
|
|
|
longDescription = "An interactive Nix documentation tool providing a CLI for function search and a Nix plugin for docs in the REPL";
|
|
|
|
homepage = "https://github.com/lf-/nix-doc";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = [ maintainers.lf- ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|