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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
913 B
Nix
Raw Normal View History

{ lib
, buildGoModule
2019-08-01 20:28:33 +00:00
, fetchFromGitHub
, makeWrapper
, mercurial
, git
, 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
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 {
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=";
nativeBuildInputs = [ makeWrapper ];
# requires network access
doCheck = false;
postInstall = ''
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; };
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
};
}