mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
4729707e40
Related: https://github.com/NixOS/nixpkgs/pull/175541 Thanks Artturin for the notification.
30 lines
889 B
Nix
30 lines
889 B
Nix
{ lib, rustPlatform, fetchFromGitHub, boost, nix, pkg-config }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "nix-doc";
|
|
version = "0.5.4";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "lf-";
|
|
repo = "nix-doc";
|
|
sha256 = "sha256-bijcLIRBfoqirwz98Q3uQjHXSOaaqZECfav4TUvCuxg=";
|
|
};
|
|
|
|
doCheck = true;
|
|
buildInputs = [ boost nix ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
cargoSha256 = "sha256-LpcAMsBeNa2GDGN7+9rTtkQluPfHSnAxanRtDtRahzc=";
|
|
|
|
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;
|
|
};
|
|
}
|