depot/third_party/nixpkgs/pkgs/development/tools/misc/hound/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

38 lines
829 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, makeWrapper
, mercurial
, git
}:
buildGoModule rec {
pname = "hound";
version = "0.5.1";
src = fetchFromGitHub {
owner = "hound-search";
repo = "hound";
rev = "v${version}";
sha256 = "sha256-1URhb+ZrtP5eGS2o7lBxvAxQJR/J6oE+pCbJ7sQb0X4=";
};
vendorSha256 = "sha256-ZgF/PB3VTPx367JUkhOkSEK1uvqENNG0xuNXvCGENnQ=";
nativeBuildInputs = [ makeWrapper ];
# requires network access
doCheck = false;
postInstall = ''
wrapProgram $out/bin/houndd --prefix PATH : ${lib.makeBinPath [ mercurial git ]}
'';
meta = with lib; {
inherit (src.meta) homepage;
description = "Lightning fast code searching made easy";
license = licenses.mit;
maintainers = with maintainers; [ grahamc SuperSandro2000 ];
platforms = platforms.unix;
};
}