1{ lib
2, buildGoModule
3, fetchFromGitHub
4, git
5}:
6buildGoModule {
7 pname = "zoekt";
8 version = "unstable-2022-11-09";
9
10 src = fetchFromGitHub {
11 owner = "sourcegraph";
12 repo = "zoekt";
13 rev = "c4b18d3b44da94b3e7c9c94467d68c029666bb86";
14 hash = "sha256-QtwOiBxBeFkhRfH3R2fP72b05Hc4+zt9njqCNVcprZ4=";
15 };
16
17 vendorHash = "sha256-DiAqFJ8E5V0/eHztm92WVrf1XGPXmmOaVXaWHfQMn2k=";
18
19 nativeCheckInputs = [
20 git
21 ];
22
23 preCheck = ''
24 export HOME=`mktemp -d`
25 git config --global --replace-all protocol.file.allow always
26 '';
27
28 meta = with lib; {
29 description = "Fast trigram based code search";
30 homepage = "https://github.com/google/zoekt";
31 license = licenses.asl20;
32 maintainers = [ ];
33 };
34}