mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
39 lines
848 B
Nix
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
|
|
];
|
|
};
|
|
})
|