mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
tantivy-go: use importCargoLock to simplify adding Cargo.lock
(cherry picked from commit bf4dcf9e0b)
This commit is contained in:
committed by
github-actions[bot]
parent
ad95a66dd1
commit
de0a60ceac
1908
pkgs/by-name/ta/tantivy-go/Cargo.lock
generated
Normal file
1908
pkgs/by-name/ta/tantivy-go/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -15,14 +15,21 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
hash = "sha256-ksHw+62JwQrzxLuXwYfTLOkC22Miz1Rpl5XX8+vPBcM=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-GKbQFWXKEgYmoTyFCQ/SAgFB7UJpYN2SWwZEiUxd260=";
|
||||
sourceRoot = "${finalAttrs.src.name}/rust";
|
||||
|
||||
cargoPatches = [
|
||||
./add-Cargo.lock.patch
|
||||
];
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"rust-stemmers-1.2.0" = "sha256-GJYFQf025U42rJEoI9eIi3xDdK6enptAr3jphuKJdiw=";
|
||||
"tantivy-0.23.0" = "sha256-e2ffM2gRC5eww3xv9izLqukGUgduCt2u7jsqTDX5l8k=";
|
||||
"tantivy-jieba-0.11.0" = "sha256-BDz6+EVksgLkOj/8XXxPMVshI0X1+oLt6alDLMpnLZc=";
|
||||
};
|
||||
};
|
||||
|
||||
cargoRoot = "rust";
|
||||
buildAndTestSubdir = finalAttrs.cargoRoot;
|
||||
postPatch = ''
|
||||
ln -s ${./Cargo.lock} Cargo.lock
|
||||
chmod +w ../bindings.h
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Tantivy go bindings";
|
||||
|
||||
Reference in New Issue
Block a user