nixpkgs/pkgs/by-name/ro/roogle/package.nix
Alyssa Ross 17d57b3e83 roogle: useFetchCargoVendor
Cargo 1.84.0 seems to have changed the output format of cargo vendor
again, once again invalidating fetchCargoTarball FOD hashes.  It's
time to fix this once and for all, switching across the board to
fetchCargoVendor, which is not dependent on cargo vendor's output
format.
2025-01-30 16:28:30 +01:00

32 lines
726 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "roogle";
version = "1.0.2";
src = fetchFromGitHub {
owner = "hkmatsumoto";
repo = pname;
rev = version;
sha256 = "sha256-oeQwRcDn4X/CL+O4APmGv9T19c9oD5tCBRz4K41K1Zg=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-lmRo6Q67hJ3hv0jQt6epiNOckRv0rA0a0DNEKIdDoUE=";
meta = with lib; {
description = "Rust API search engine which allows you to search functions by names and type signatures";
mainProgram = "roogle";
homepage = "https://github.com/hkmatsumoto/roogle";
license = with licenses; [
mit # or
asl20
];
maintainers = with maintainers; [ figsoda ];
};
}