mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
hound: Wrap git & mercurial binaries
This commit is contained in:
parent
a8d45e7fc3
commit
0e97967187
@ -1,10 +1,18 @@
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
{ stdenv
|
||||
, buildGoPackage
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, mercurial
|
||||
, git
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "hound-unstable-${version}";
|
||||
version = "2018-11-02";
|
||||
rev = "74ec7448a234d8d09e800b92e52c92e378c07742";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
goPackagePath = "github.com/etsy/hound";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@ -16,6 +24,12 @@ buildGoPackage rec {
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
postInstall = with stdenv; let
|
||||
binPath = lib.makeBinPath [ mercurial git ];
|
||||
in ''
|
||||
wrapProgram $bin/bin/houndd --prefix PATH : ${binPath}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit (src.meta) homepage;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user