2021-02-10 13:25:29 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2019-08-01 22:28:33 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, mercurial
|
|
|
|
, git
|
|
|
|
}:
|
2016-10-13 00:00:04 +02:00
|
|
|
|
2021-02-10 13:25:29 +01:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hound";
|
2021-03-04 03:25:13 +01:00
|
|
|
version = "0.4.0";
|
2016-10-13 00:00:04 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-02-10 13:25:29 +01:00
|
|
|
owner = "hound-search";
|
2016-10-13 00:00:04 +02:00
|
|
|
repo = "hound";
|
2021-03-04 03:25:13 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0p5w54fr5xz19ff8k5xkyq3iqhjki8wc0hj2x1pnmk6hzrz6hf65";
|
2016-10-13 00:00:04 +02:00
|
|
|
};
|
|
|
|
|
2021-02-10 13:25:29 +01:00
|
|
|
vendorSha256 = "0x1nhhhvqmz3qssd2d44zaxbahj8lh9r4m5jxdvzqk6m3ly7y0b6";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
# requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/houndd --prefix PATH : ${lib.makeBinPath [ mercurial git ]}
|
2019-08-01 22:28:33 +02:00
|
|
|
'';
|
|
|
|
|
2021-02-10 13:25:29 +01:00
|
|
|
meta = with lib; {
|
2016-10-16 19:08:14 +02:00
|
|
|
inherit (src.meta) homepage;
|
2016-10-13 00:00:04 +02:00
|
|
|
description = "Lightning fast code searching made easy";
|
2021-02-10 13:25:29 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ grahamc SuperSandro2000 ];
|
|
|
|
platforms = platforms.unix;
|
2016-10-13 00:00:04 +02:00
|
|
|
};
|
|
|
|
}
|