Add zoekt package

This commit is contained in:
ctsk
2023-10-05 18:39:31 +02:00
parent b8548f0005
commit 879562139c
2 changed files with 28 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
[
(super: self: { logo = super.callPackage ./lib/pkgs/logo { }; })
(super: self: { config-archive = super.callPackage ./lib/pkgs/config-archive.nix { }; })
(super: self: { zoekt = super.callPackage ./lib/pkgs/zoekt.nix { }; })
];
};
@@ -39,6 +40,14 @@
};
};
packages = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
in
{
zoekt = pkgs.callPackage ./lib/pkgs/zoekt.nix { };
}
);
devShells = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
in

19
lib/pkgs/zoekt.nix Normal file
View File

@@ -0,0 +1,19 @@
{ buildGoModule, fetchFromGitHub, git,
lib
}:
buildGoModule {
name = "zoekt";
version = "1065c66";
src = fetchFromGitHub {
owner = "sourcegraph";
repo = "zoekt";
rev = "1065c664648964b366f55b2e83797a82ca5d5a24";
sha256 = "sha256-qAFNNaSH2LWxwa0Ar5aXAcVA+f+ex6jsz1HRz8f6nXg=";
};
vendorSha256 = "sha256-8Wqj2AMUq6B4WxDDqSSOhREpoLfZdX6oitBb+H9Jrrc=";
nativeBuildInputs = [ git ];
}