depot/third_party/nixpkgs/pkgs/development/tools/misc/hound/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

38 lines
829 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, makeWrapper
, mercurial
, git
}:
buildGoModule rec {
pname = "hound";
version = "0.5.0";
src = fetchFromGitHub {
owner = "hound-search";
repo = "hound";
rev = "v${version}";
sha256 = "sha256-FNK6SgISGqx+O7Vgp+KOqQyPhqzERDjeo6mQIX1SXnA=";
};
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;
};
}