2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv
|
2019-08-01 21:28:33 +01:00
|
|
|
, buildGoPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, mercurial
|
|
|
|
, git
|
|
|
|
}:
|
2016-10-12 23:00:04 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "hound-unstable";
|
2018-11-23 12:22:01 +00:00
|
|
|
version = "2018-11-02";
|
|
|
|
rev = "74ec7448a234d8d09e800b92e52c92e378c07742";
|
2016-10-12 23:00:04 +01:00
|
|
|
|
2019-08-01 21:28:33 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2016-10-12 23:00:04 +01:00
|
|
|
goPackagePath = "github.com/etsy/hound";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "etsy";
|
|
|
|
repo = "hound";
|
2018-11-23 12:22:01 +00:00
|
|
|
sha256 = "0g6nvgqjabprcl9z5ci5frhbam1dzq978h1d6aanf8vvzslfgdpq";
|
2016-10-12 23:00:04 +01:00
|
|
|
};
|
|
|
|
|
2019-08-01 21:28:33 +01:00
|
|
|
postInstall = with stdenv; let
|
|
|
|
binPath = lib.makeBinPath [ mercurial git ];
|
|
|
|
in ''
|
2020-04-28 02:50:57 +01:00
|
|
|
wrapProgram $out/bin/houndd --prefix PATH : ${binPath}
|
2019-08-01 21:28:33 +01:00
|
|
|
'';
|
|
|
|
|
2016-10-16 18:08:14 +01:00
|
|
|
meta = {
|
|
|
|
inherit (src.meta) homepage;
|
2016-10-12 23:00:04 +01:00
|
|
|
|
|
|
|
description = "Lightning fast code searching made easy";
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ grahamc ];
|
|
|
|
platforms = lib.platforms.unix;
|
2016-10-12 23:00:04 +01:00
|
|
|
};
|
|
|
|
}
|