Merge pull request #112650 from SuperSandro2000/hound
This commit is contained in:
commit
37608535ce
@ -1,39 +1,38 @@
|
||||
{ lib, stdenv
|
||||
, buildGoPackage
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, mercurial
|
||||
, git
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "hound-unstable";
|
||||
version = "2018-11-02";
|
||||
rev = "74ec7448a234d8d09e800b92e52c92e378c07742";
|
||||
buildGoModule rec {
|
||||
pname = "hound";
|
||||
version = "unstable-2021-01-26";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hound-search";
|
||||
repo = "hound";
|
||||
rev = "b88fc1f79d668e6671a478ddf4fb3e73a63067b9";
|
||||
sha256 = "00xc3cj7d3klvhsh9hivvjwgzb6lycw3r3w7nch98nv2j8iljc44";
|
||||
};
|
||||
|
||||
vendorSha256 = "0x1nhhhvqmz3qssd2d44zaxbahj8lh9r4m5jxdvzqk6m3ly7y0b6";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
goPackagePath = "github.com/etsy/hound";
|
||||
# requires network access
|
||||
doCheck = false;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "etsy";
|
||||
repo = "hound";
|
||||
sha256 = "0g6nvgqjabprcl9z5ci5frhbam1dzq978h1d6aanf8vvzslfgdpq";
|
||||
};
|
||||
|
||||
postInstall = with stdenv; let
|
||||
binPath = lib.makeBinPath [ mercurial git ];
|
||||
in ''
|
||||
wrapProgram $out/bin/houndd --prefix PATH : ${binPath}
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/houndd --prefix PATH : ${lib.makeBinPath [ mercurial git ]}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
inherit (src.meta) homepage;
|
||||
|
||||
description = "Lightning fast code searching made easy";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ grahamc ];
|
||||
platforms = lib.platforms.unix;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ grahamc SuperSandro2000 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user