gitAndTools.hub: simplify
This commit is contained in:
parent
0185daf3ab
commit
46c4100552
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, buildGoPackage, fetchFromGitHub, ronn, ruby, groff, Security, utillinux, git, glibcLocales }:
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub, groff, Security, utillinux }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "hub";
|
||||
|
@ -16,9 +16,8 @@ buildGoPackage rec {
|
|||
sha256 = "1vvrc3k81jm9c664g0j9666i7ypn7n7jfyj4gxcybq3sg2d4di27";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ groff ronn utillinux glibcLocales ];
|
||||
buildInputs = [ ruby ] ++
|
||||
stdenv.lib.optional stdenv.isDarwin Security;
|
||||
nativeBuildInputs = [ groff utillinux ];
|
||||
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
|
@ -30,7 +29,8 @@ buildGoPackage rec {
|
|||
install -D etc/hub.bash_completion.sh "$bin/share/bash-completion/completions/hub"
|
||||
install -D etc/hub.fish_completion "$bin/share/fish/vendor_completions.d/hub.fish"
|
||||
|
||||
PATH=$PATH:${git}/bin LC_ALL=en_US.utf-8 make man-pages
|
||||
LC_ALL=C.UTF8 \
|
||||
make man-pages
|
||||
cp -vr --parents share/man/man[1-9]/*.[1-9] $bin/
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in New Issue