2021-02-05 17:12:51 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, boost, nix, pkg-config }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nix-doc";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.5.7";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "lf-";
|
|
|
|
repo = "nix-doc";
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-VSogUulfBTmZMmBbw9Ya/kfoHZlvJMujCPdjhRsjnPo=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
buildInputs = [ boost nix ];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [ pkg-config nix ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
cargoSha256 = "sha256-DZQ1Q+4I6Qm2WFvBoPNILp0wwP+01msx6zP12EHaPQc=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "An interactive Nix documentation tool";
|
2021-07-14 22:03:04 +00:00
|
|
|
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";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/lf-/nix-doc";
|
2021-07-14 22:03:04 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2020-08-20 17:08:02 +00:00
|
|
|
maintainers = [ maintainers.lf- ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|