at 23.11-beta 34 lines 834 B view raw
1{ lib 2, fetchFromGitHub 3, gitUpdater 4, rustPlatform 5, sqlite 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "cargo-docset"; 10 version = "0.3.1"; 11 12 src = fetchFromGitHub { 13 owner = "Robzz"; 14 repo = pname; 15 rev = "v${version}"; 16 hash = "sha256-o2CSQiU9fEoS3eRmwphtYGZTwn3mstRm2Tlvval83+U="; 17 }; 18 19 cargoHash = "sha256-YHrSvfHfQ7kbVeCOgggYf3E7gHq+RhVKZrzP8LqX5I0="; 20 21 buildInputs = [ sqlite ]; 22 23 passthru.updateScript = gitUpdater { 24 rev-prefix = "v"; 25 }; 26 27 meta = with lib; { 28 description = "Cargo subcommand to generate a Dash/Zeal docset for your Rust packages"; 29 homepage = "https://github.com/Robzz/cargo-docset"; 30 changelog = "https://github.com/Robzz/cargo-docset/blob/${version}/CHANGELOG.md"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ colinsane matthiasbeyer ]; 33 }; 34}