2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, libXcomposite, libgnome-keyring, makeWrapper, udev, curl, alsaLib
|
2019-02-10 17:45:37 +00:00
|
|
|
, libXfixes, atk, gtk3, libXrender, pango, gnome2, gnome3, cairo, freetype, fontconfig
|
2018-03-01 19:05:20 +00:00
|
|
|
, libX11, libXi, libxcb, libXext, libXcursor, glib, libXScrnSaver, libxkbfile, libXtst
|
2017-03-25 11:51:36 +00:00
|
|
|
, nss, nspr, cups, fetchurl, expat, gdk_pixbuf, libXdamage, libXrandr, dbus
|
2019-02-10 17:45:37 +00:00
|
|
|
, dpkg, makeDesktopItem, openssl, wrapGAppsHook, hicolor-icon-theme
|
2017-03-05 15:38:55 +00:00
|
|
|
}:
|
|
|
|
|
2017-03-24 21:01:41 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2018-03-12 17:34:46 +00:00
|
|
|
let
|
|
|
|
curlWithGnuTls = curl.override { gnutlsSupport = true; sslSupport = false; };
|
|
|
|
in
|
2017-03-05 15:38:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gitkraken-${version}";
|
2019-04-06 11:04:55 +01:00
|
|
|
version = "5.0.4";
|
2017-03-05 15:38:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-09-29 19:48:28 +01:00
|
|
|
url = "https://release.axocdn.com/linux/GitKraken-v${version}.deb";
|
2019-04-06 11:04:55 +01:00
|
|
|
sha256 = "1fq0w8djkcx5jr2pw6izlq5rkwbq3r3f15xr3dmmbz6gjvi3nra0";
|
2017-03-05 15:38:55 +00:00
|
|
|
};
|
|
|
|
|
2017-03-24 21:01:41 +00:00
|
|
|
libPath = makeLibraryPath [
|
2017-03-05 15:38:55 +00:00
|
|
|
stdenv.cc.cc.lib
|
2018-03-12 17:34:46 +00:00
|
|
|
curlWithGnuTls
|
2017-03-05 15:38:55 +00:00
|
|
|
udev
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXcursor
|
|
|
|
libXi
|
2018-03-01 19:05:20 +00:00
|
|
|
libxcb
|
2017-03-05 15:38:55 +00:00
|
|
|
glib
|
|
|
|
libXScrnSaver
|
|
|
|
libxkbfile
|
|
|
|
libXtst
|
|
|
|
nss
|
|
|
|
nspr
|
|
|
|
cups
|
|
|
|
alsaLib
|
|
|
|
expat
|
|
|
|
gdk_pixbuf
|
|
|
|
dbus
|
|
|
|
libXdamage
|
|
|
|
libXrandr
|
|
|
|
atk
|
|
|
|
pango
|
|
|
|
cairo
|
|
|
|
freetype
|
|
|
|
fontconfig
|
|
|
|
libXcomposite
|
|
|
|
libXfixes
|
|
|
|
libXrender
|
2019-01-01 19:30:56 +00:00
|
|
|
gtk3
|
2017-03-05 15:38:55 +00:00
|
|
|
gnome2.GConf
|
2018-02-25 02:23:58 +00:00
|
|
|
libgnome-keyring
|
2019-01-01 19:30:56 +00:00
|
|
|
openssl
|
2017-03-05 15:38:55 +00:00
|
|
|
];
|
|
|
|
|
2017-04-01 22:25:34 +01:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "gitkraken";
|
|
|
|
exec = "gitkraken";
|
2018-05-31 22:04:50 +01:00
|
|
|
icon = "gitkraken";
|
2017-04-01 22:25:34 +01:00
|
|
|
desktopName = "GitKraken";
|
|
|
|
genericName = "Git Client";
|
|
|
|
categories = "Application;Development;";
|
|
|
|
comment = "Graphical Git client from Axosoft";
|
|
|
|
};
|
|
|
|
|
2019-02-10 17:45:37 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
|
2019-02-20 18:49:41 +00:00
|
|
|
buildInputs = [ dpkg gtk3 gnome3.adwaita-icon-theme hicolor-icon-theme ];
|
2017-04-01 22:25:34 +01:00
|
|
|
|
2018-05-31 22:04:50 +01:00
|
|
|
unpackCmd = ''
|
|
|
|
mkdir out
|
|
|
|
dpkg -x $curSrc out
|
|
|
|
'';
|
2017-04-01 22:25:34 +01:00
|
|
|
|
2018-05-31 22:04:50 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
pushd usr
|
|
|
|
pushd share
|
|
|
|
substituteInPlace applications/gitkraken.desktop \
|
2019-03-14 18:45:37 +00:00
|
|
|
--replace /usr/share/gitkraken $out/bin
|
2018-05-31 22:04:50 +01:00
|
|
|
popd
|
|
|
|
rm -rf bin/gitkraken share/lintian
|
|
|
|
cp -av share bin $out/
|
|
|
|
popd
|
2019-02-06 05:57:16 +00:00
|
|
|
|
2019-02-10 17:45:37 +00:00
|
|
|
ln -s $out/share/gitkraken/gitkraken $out/bin/gitkraken
|
2018-05-31 22:04:50 +01:00
|
|
|
'';
|
2017-04-01 22:25:34 +01:00
|
|
|
|
2018-05-31 22:04:50 +01:00
|
|
|
postFixup = ''
|
|
|
|
pushd $out/share/gitkraken
|
|
|
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" gitkraken
|
2017-04-01 22:25:34 +01:00
|
|
|
|
2018-05-31 22:04:50 +01:00
|
|
|
for file in $(find . -type f \( -name \*.node -o -name gitkraken -o -name \*.so\* \) ); do
|
|
|
|
patchelf --set-rpath ${libPath}:$out/share/gitkraken $file || true
|
|
|
|
done
|
|
|
|
popd
|
2017-03-05 15:38:55 +00:00
|
|
|
'';
|
|
|
|
|
2017-03-24 21:01:41 +00:00
|
|
|
meta = {
|
2017-03-05 15:38:55 +00:00
|
|
|
homepage = https://www.gitkraken.com/;
|
|
|
|
description = "The downright luxurious and most popular Git client for Windows, Mac & Linux";
|
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = platforms.linux;
|
2017-03-09 22:09:06 +00:00
|
|
|
maintainers = with maintainers; [ xnwdd ];
|
2017-03-05 15:38:55 +00:00
|
|
|
};
|
|
|
|
}
|