Merge pull request #112650 from SuperSandro2000/hound

This commit is contained in:
Sandro 2021-02-10 16:27:12 +01:00 committed by GitHub
commit 37608535ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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