2022-11-14 09:29:12 +00:00
|
|
|
{ lib
|
2021-04-19 23:00:19 +00:00
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
|
|
|
}:
|
|
|
|
buildGoModule {
|
|
|
|
pname = "zoekt";
|
2022-11-14 09:29:12 +00:00
|
|
|
version = "unstable-2022-11-09";
|
2021-04-19 23:00:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-11-14 09:29:12 +00:00
|
|
|
owner = "sourcegraph";
|
2021-04-19 23:00:19 +00:00
|
|
|
repo = "zoekt";
|
2022-11-14 09:29:12 +00:00
|
|
|
rev = "c4b18d3b44da94b3e7c9c94467d68c029666bb86";
|
|
|
|
hash = "sha256-QtwOiBxBeFkhRfH3R2fP72b05Hc4+zt9njqCNVcprZ4=";
|
2021-04-19 23:00:19 +00:00
|
|
|
};
|
|
|
|
|
2022-11-14 09:29:12 +00:00
|
|
|
vendorHash = "sha256-DiAqFJ8E5V0/eHztm92WVrf1XGPXmmOaVXaWHfQMn2k=";
|
2021-04-19 23:00:19 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-19 23:00:19 +00:00
|
|
|
git
|
|
|
|
];
|
|
|
|
|
2022-11-14 09:29:12 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=`mktemp -d`
|
|
|
|
git config --global --replace-all protocol.file.allow always
|
|
|
|
'';
|
|
|
|
|
2021-04-19 23:00:19 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Fast trigram based code search";
|
|
|
|
homepage = "https://github.com/google/zoekt";
|
|
|
|
license = licenses.asl20;
|
2023-03-22 14:14:50 +00:00
|
|
|
maintainers = [ ];
|
2021-04-19 23:00:19 +00:00
|
|
|
};
|
|
|
|
}
|