c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
34 lines
834 B
Nix
34 lines
834 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, gitUpdater
|
|
, rustPlatform
|
|
, sqlite
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-docset";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Robzz";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-o2CSQiU9fEoS3eRmwphtYGZTwn3mstRm2Tlvval83+U=";
|
|
};
|
|
|
|
cargoHash = "sha256-YHrSvfHfQ7kbVeCOgggYf3E7gHq+RhVKZrzP8LqX5I0=";
|
|
|
|
buildInputs = [ sqlite ];
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
rev-prefix = "v";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Cargo subcommand to generate a Dash/Zeal docset for your Rust packages";
|
|
homepage = "https://github.com/Robzz/cargo-docset";
|
|
changelog = "https://github.com/Robzz/cargo-docset/blob/${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ colinsane matthiasbeyer ];
|
|
};
|
|
}
|