2021-02-10 12:25:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2019-08-01 20:28:33 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, mercurial
|
|
|
|
, git
|
2022-10-23 02:47:44 +00:00
|
|
|
, openssh
|
2022-10-23 02:43:07 +00:00
|
|
|
, nixosTests
|
2019-08-01 20:28:33 +00:00
|
|
|
}:
|
2016-10-12 22:00:04 +00:00
|
|
|
|
2021-02-10 12:25:29 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hound";
|
2022-09-15 19:22:50 +00:00
|
|
|
version = "0.6.0";
|
2016-10-12 22:00:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-02-10 12:25:29 +00:00
|
|
|
owner = "hound-search";
|
2016-10-12 22:00:04 +00:00
|
|
|
repo = "hound";
|
2021-03-04 02:25:13 +00:00
|
|
|
rev = "v${version}";
|
2022-09-15 19:22:50 +00:00
|
|
|
sha256 = "sha256-M1c4lsD7DQo5+RCCDdyn9FeGuGngMsg1qSrxM2wCzpg=";
|
2016-10-12 22:00:04 +00:00
|
|
|
};
|
|
|
|
|
2022-06-10 23:35:57 +00:00
|
|
|
vendorSha256 = "sha256-ZgF/PB3VTPx367JUkhOkSEK1uvqENNG0xuNXvCGENnQ=";
|
2021-02-10 12:25:29 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
# requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
2022-10-23 02:47:44 +00:00
|
|
|
wrapProgram $out/bin/houndd --prefix PATH : ${lib.makeBinPath [ mercurial git openssh ]}
|
2019-08-01 20:28:33 +00:00
|
|
|
'';
|
|
|
|
|
2022-10-23 02:43:07 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) hound; };
|
|
|
|
|
2021-02-10 12:25:29 +00:00
|
|
|
meta = with lib; {
|
2016-10-16 17:08:14 +00:00
|
|
|
inherit (src.meta) homepage;
|
2016-10-12 22:00:04 +00:00
|
|
|
description = "Lightning fast code searching made easy";
|
2021-02-10 12:25:29 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ grahamc SuperSandro2000 ];
|
|
|
|
platforms = platforms.unix;
|
2016-10-12 22:00:04 +00:00
|
|
|
};
|
|
|
|
}
|