2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildGoPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, mercurial
|
|
|
|
, git
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "hound-unstable";
|
|
|
|
version = "2018-11-02";
|
|
|
|
rev = "74ec7448a234d8d09e800b92e52c92e378c07742";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
goPackagePath = "github.com/etsy/hound";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "etsy";
|
|
|
|
repo = "hound";
|
|
|
|
sha256 = "0g6nvgqjabprcl9z5ci5frhbam1dzq978h1d6aanf8vvzslfgdpq";
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = with stdenv; let
|
|
|
|
binPath = lib.makeBinPath [ mercurial git ];
|
|
|
|
in ''
|
2020-05-15 21:57:56 +00:00
|
|
|
wrapProgram $out/bin/houndd --prefix PATH : ${binPath}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
|
|
|
|
description = "Lightning fast code searching made easy";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ grahamc ];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|