45 lines
935 B
Nix
45 lines
935 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
gitMinimal,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule {
|
|
pname = "zoekt";
|
|
version = "3.7.2-2-unstable-2025-02-21";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sourcegraph";
|
|
repo = "zoekt";
|
|
rev = "3d43fdf3b1c9f93f384f126901f069ebb5efdd32";
|
|
hash = "sha256-qex38HoQ40S61fdjdKm5qgbSwOKvmu3gnsqrw+B2MSQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-B45Q9G+p/idqqz45lLQQuDGLwAzhKuo9Ev+cISGbKUo=";
|
|
|
|
nativeCheckInputs = [
|
|
gitMinimal
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=`mktemp -d`
|
|
git config --global --replace-all protocol.file.allow always
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version"
|
|
"branch"
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
description = "Fast trigram based code search";
|
|
homepage = "https://github.com/sourcegraph/zoekt";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ ];
|
|
mainProgram = "zoekt";
|
|
};
|
|
}
|