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

42 lines
885 B
Nix
Raw Normal View History

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