cargo-docset: init at 0.3.1

This commit is contained in:
Colin 2023-05-10 05:46:58 +00:00 committed by Yt
parent dfa022d879
commit 6764cc2a09
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ 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 ];
};
}

View file

@ -16519,6 +16519,7 @@ with pkgs;
};
cargo-deb = callPackage ../development/tools/rust/cargo-deb { };
cargo-deps = callPackage ../development/tools/rust/cargo-deps { };
cargo-docset = callPackage ../development/tools/rust/cargo-docset { };
cargo-edit = callPackage ../development/tools/rust/cargo-edit {
inherit (darwin.apple_sdk.frameworks) Security;
};