Files
nixpkgs/pkgs/by-name/ta/tantivy-go/package.nix
2025-09-07 22:34:47 -04:00

39 lines
848 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "tantivy-go";
version = "1.0.4";
src = fetchFromGitHub {
owner = "anyproto";
repo = "tantivy-go";
tag = "v${finalAttrs.version}";
hash = "sha256-ksHw+62JwQrzxLuXwYfTLOkC22Miz1Rpl5XX8+vPBcM=";
};
cargoHash = "sha256-GKbQFWXKEgYmoTyFCQ/SAgFB7UJpYN2SWwZEiUxd260=";
cargoPatches = [
./add-Cargo.lock.patch
];
cargoRoot = "rust";
buildAndTestSubdir = finalAttrs.cargoRoot;
meta = {
description = "Tantivy go bindings";
homepage = "https://github.com/anyproto/tantivy-go";
changelog = "https://github.com/anyproto/tantivy-go/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
autrimpo
adda
kira-bruneau
];
};
})