at 23.11-beta 41 lines 902 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4, makeWrapper 5, mercurial 6, git 7, openssh 8, nixosTests 9}: 10 11buildGoModule rec { 12 pname = "hound"; 13 version = "0.7.1"; 14 15 src = fetchFromGitHub { 16 owner = "hound-search"; 17 repo = "hound"; 18 rev = "v${version}"; 19 sha256 = "sha256-Qdk57zLjTXLdDEmB6K+sZAym5s0BekJJa/CpYeOBOcY="; 20 }; 21 22 vendorHash = "sha256-0psvz4bnhGuwwSAXvQp0ju0GebxoUyY2Rjp/D43KF78="; 23 24 nativeBuildInputs = [ makeWrapper ]; 25 26 # requires network access 27 doCheck = false; 28 29 postInstall = '' 30 wrapProgram $out/bin/houndd --prefix PATH : ${lib.makeBinPath [ mercurial git openssh ]} 31 ''; 32 33 passthru.tests = { inherit (nixosTests) hound; }; 34 35 meta = with lib; { 36 description = "Lightning fast code searching made easy"; 37 homepage = "https://github.com/hound-search/hound"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ grahamc SuperSandro2000 ]; 40 }; 41}