Merge pull request #78420 from evanjs/gitkraken-6.5.0

gitkraken: 6.4.1 -> 6.5.1
This commit is contained in:
worldofpeace 2020-02-09 21:30:09 -05:00 committed by GitHub
commit 9c22a82d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
{ stdenv, libXcomposite, libgnome-keyring, makeWrapper, udev, curl, alsaLib { stdenv, libXcomposite, libgnome-keyring, makeWrapper, udev, curl, alsaLib
, libXfixes, atk, gtk3, libXrender, pango, gnome3, cairo, freetype, fontconfig , libXfixes, atk, gtk3, libXrender, pango, gnome3, cairo, freetype, fontconfig
, libX11, libXi, libxcb, libXext, libXcursor, glib, libXScrnSaver, libxkbfile, libXtst , libX11, libXi, libxcb, libXext, libXcursor, glib, libXScrnSaver, libxkbfile, libXtst
, nss, nspr, cups, fetchurl, expat, gdk-pixbuf, libXdamage, libXrandr, dbus , nss, nspr, cups, fetchzip, expat, gdk-pixbuf, libXdamage, libXrandr, dbus
, dpkg, makeDesktopItem, openssl, wrapGAppsHook, at-spi2-atk, libuuid , makeDesktopItem, openssl, wrapGAppsHook, at-spi2-atk, at-spi2-core, libuuid
, e2fsprogs, krb5 , e2fsprogs, krb5
}: }:
@ -13,13 +13,16 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gitkraken"; pname = "gitkraken";
version = "6.4.1"; version = "6.5.1";
src = fetchurl { src = fetchzip {
url = "https://release.axocdn.com/linux/GitKraken-v${version}.deb"; url = "https://release.axocdn.com/linux/GitKraken-v${version}.tar.gz";
sha256 = "1w8iwpbr6nwzhhf63fvr7pd66yjx3jgjy4gx5y02qxa3ip5psq5b"; sha256 = "0dwjwismv4rfw58801g2ay51h9qrffcxgbl910frd4i530w0y44p";
}; };
dontBuild = true;
dontConfigure = true;
libPath = makeLibraryPath [ libPath = makeLibraryPath [
stdenv.cc.cc.lib stdenv.cc.cc.lib
curlWithGnuTls curlWithGnuTls
@ -54,6 +57,7 @@ stdenv.mkDerivation rec {
libgnome-keyring libgnome-keyring
openssl openssl
at-spi2-atk at-spi2-atk
at-spi2-core
libuuid libuuid
e2fsprogs e2fsprogs
krb5 krb5
@ -69,27 +73,27 @@ stdenv.mkDerivation rec {
comment = "Graphical Git client from Axosoft"; comment = "Graphical Git client from Axosoft";
}; };
nativeBuildInputs = [ dpkg makeWrapper wrapGAppsHook ]; nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
buildInputs = [ gtk3 gnome3.adwaita-icon-theme ]; buildInputs = [ gtk3 gnome3.adwaita-icon-theme ];
unpackCmd = ''
mkdir out
dpkg -x $curSrc out
'';
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir $out
pushd usr
pushd share
substituteInPlace applications/gitkraken.desktop \
--replace /usr/share/gitkraken $out/bin
popd
rm -rf bin/gitkraken share/lintian
cp -av share bin $out/
popd
mkdir -p $out/share/gitkraken/
cp -R $src/* $out/share/gitkraken/
mkdir -p $out/bin
ln -s $out/share/gitkraken/gitkraken $out/bin/gitkraken ln -s $out/share/gitkraken/gitkraken $out/bin/gitkraken
mkdir -p $out/share/applications
cp ${desktopItem}/share/applications/* $out/share/applications/
substituteInPlace $out/share/applications/gitkraken.desktop \
--replace $out/usr/share/gitkraken $out/bin
mkdir -p $out/share/pixmaps
cp gitkraken.png $out/share/pixmaps/gitkraken.png
runHook postInstall runHook postInstall
''; '';