3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/package-management/nix-doc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
889 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub, boost, nix, pkg-config }:
2020-08-12 02:19:11 +01:00
rustPlatform.buildRustPackage rec {
pname = "nix-doc";
2022-06-16 07:10:42 +01:00
version = "0.5.5";
2020-08-12 02:19:11 +01:00
src = fetchFromGitHub {
rev = "v${version}";
owner = "lf-";
repo = "nix-doc";
2022-06-16 07:10:42 +01:00
sha256 = "sha256-JGzrDSAJMH7BaqGfyfLe041T2f8QdwLlFi11yHo+4JI=";
2020-08-12 02:19:11 +01:00
};
doCheck = true;
buildInputs = [ boost nix ];
nativeBuildInputs = [ pkg-config ];
2022-06-16 07:10:42 +01:00
cargoSha256 = "sha256-o49xT26X1QdkSWDlz//ZgnLs592DkxktyFaY5S4vVTM=";
2020-08-12 02:19:11 +01:00
meta = with lib; {
2020-08-12 02:19:11 +01:00
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";
2020-08-12 02:19:11 +01:00
homepage = "https://github.com/lf-/nix-doc";
license = licenses.lgpl3Plus;
2020-08-12 02:19:11 +01:00
maintainers = [ maintainers.lf- ];
platforms = platforms.unix;
};
}