Merge pull request #70210 from cko/git-extras

gitAndTools.git-extras: 4.7.0 -> 5.0.0
This commit is contained in:
Renaud 2019-11-12 20:30:44 +01:00 committed by GitHub
commit 9d0c1c1e84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,19 +1,26 @@
{ stdenv, fetchurl }:
{ stdenv, fetchzip, unixtools, which }:
stdenv.mkDerivation rec {
pname = "git-extras";
version = "4.7.0";
version = "5.0.0";
src = fetchurl {
src = fetchzip {
url = "https://github.com/tj/git-extras/archive/${version}.tar.gz";
sha256 = "0pab4f5kmmcn333aswkgndf1fgilc41h8h0rk3lviz0yi8j59vaq";
sha256 = "0c839kc5mhi1iqhc696p4dj67i5hm2gi4d8cvdpskaapb124mj2f";
};
nativeBuildInputs = [ unixtools.column which ];
dontBuild = true;
installFlags = [ "DESTDIR=${placeholder "out"}" "PREFIX=" ];
preInstall = ''
patchShebangs .
'';
installFlags = [ "PREFIX=${placeholder "out"}" ];
postInstall = ''
# bash completion is already handled by make install
install -D etc/git-extras-completion.zsh $out/share/zsh/site-functions/_git_extras
'';