depot/third_party/nixpkgs/pkgs/tools/package-management/nix-doc/default.nix
Default email 3b21d1e521 Project import generated by Copybara.
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
2021-07-15 00:03:04 +02:00

29 lines
891 B
Nix

{ lib, rustPlatform, fetchFromGitHub, boost, nix, pkg-config }:
rustPlatform.buildRustPackage rec {
pname = "nix-doc";
version = "0.5.1";
src = fetchFromGitHub {
rev = "v${version}";
owner = "lf-";
repo = "nix-doc";
sha256 = "0yx5y90shdjwihbjrvv2m3bycgpdalafc9q4acfczfaymag8ggad";
};
doCheck = true;
buildInputs = [ boost nix ];
nativeBuildInputs = [ pkg-config ];
cargoSha256 = "11bcn111j4iqwqwpp26w7rnycasbhiixaqb1rq4ry2402hvl90j7";
meta = with lib; {
description = "An interactive Nix documentation tool";
longDescription = "An interactive Nix documentation tool providing a CLI for function search, a Nix plugin for docs in the REPL, and a ctags implementation for Nix script";
homepage = "https://github.com/lf-/nix-doc";
license = licenses.lgpl3Plus;
maintainers = [ maintainers.lf- ];
platforms = platforms.unix;
};
}