Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "codesearch"; 9 version = "1.2.0"; 10 11 src = fetchFromGitHub { 12 owner = "google"; 13 repo = "codesearch"; 14 rev = "v${version}"; 15 sha256 = "sha256-i03w8PZ31j5EutUZaamZsHz+z4qgX4prePbj5DLA78s="; 16 }; 17 18 vendorHash = null; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 ]; 24 25 meta = with lib; { 26 description = "Fast, indexed regexp search over large file trees"; 27 homepage = "https://github.com/google/codesearch"; 28 license = [ licenses.bsd3 ]; 29 maintainers = with maintainers; [ bennofs ]; 30 }; 31}