nixpkgs/pkgs/development/tools/misc/hound/default.nix

39 lines
874 B
Nix
Raw Normal View History

{ lib
, buildGoModule
2019-08-01 20:28:33 +00:00
, fetchFromGitHub
, makeWrapper
, mercurial
, git
}:
2016-10-12 22:00:04 +00:00
buildGoModule rec {
pname = "hound";
version = "unstable-2021-01-26";
2016-10-12 22:00:04 +00:00
src = fetchFromGitHub {
owner = "hound-search";
2016-10-12 22:00:04 +00:00
repo = "hound";
rev = "b88fc1f79d668e6671a478ddf4fb3e73a63067b9";
sha256 = "00xc3cj7d3klvhsh9hivvjwgzb6lycw3r3w7nch98nv2j8iljc44";
2016-10-12 22:00:04 +00:00
};
vendorSha256 = "0x1nhhhvqmz3qssd2d44zaxbahj8lh9r4m5jxdvzqk6m3ly7y0b6";
nativeBuildInputs = [ makeWrapper ];
# requires network access
doCheck = false;
postInstall = ''
wrapProgram $out/bin/houndd --prefix PATH : ${lib.makeBinPath [ mercurial git ]}
2019-08-01 20:28:33 +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";
license = licenses.mit;
maintainers = with maintainers; [ grahamc SuperSandro2000 ];
platforms = platforms.unix;
2016-10-12 22:00:04 +00:00
};
}