2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, libXcomposite, libgnome-keyring, makeWrapper, udev, curl, alsaLib
|
2019-08-18 04:01:37 +02:00
|
|
|
, libXfixes, atk, gtk3, libXrender, pango, gnome3, cairo, freetype, fontconfig
|
2018-03-01 20:05:20 +01:00
|
|
|
, libX11, libXi, libxcb, libXext, libXcursor, glib, libXScrnSaver, libxkbfile, libXtst
|
2019-05-22 13:03:39 +02:00
|
|
|
, nss, nspr, cups, fetchurl, expat, gdk-pixbuf, libXdamage, libXrandr, dbus
|
2019-06-20 06:52:02 +02:00
|
|
|
, dpkg, makeDesktopItem, openssl, wrapGAppsHook, hicolor-icon-theme, at-spi2-atk, libuuid
|
2019-08-09 23:37:11 +02:00
|
|
|
, e2fsprogs, krb5
|
2017-03-05 16:38:55 +01:00
|
|
|
}:
|
|
|
|
|
2017-03-24 22:01:41 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2018-03-12 18:34:46 +01:00
|
|
|
let
|
|
|
|
curlWithGnuTls = curl.override { gnutlsSupport = true; sslSupport = false; };
|
|
|
|
in
|
2017-03-05 16:38:55 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gitkraken";
|
2019-08-21 19:00:22 +02:00
|
|
|
version = "6.1.4";
|
2017-03-05 16:38:55 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-09-29 20:48:28 +02:00
|
|
|
url = "https://release.axocdn.com/linux/GitKraken-v${version}.deb";
|
2019-08-21 19:00:22 +02:00
|
|
|
sha256 = "10m6pwdwdxj6x64bc7mrvlvwkgqrd5prh9xx7xhvbz55q6gx4vdr";
|
2017-03-05 16:38:55 +01:00
|
|
|
};
|
|
|
|
|
2017-03-24 22:01:41 +01:00
|
|
|
libPath = makeLibraryPath [
|
2017-03-05 16:38:55 +01:00
|
|
|
stdenv.cc.cc.lib
|
2018-03-12 18:34:46 +01:00
|
|
|
curlWithGnuTls
|
2017-03-05 16:38:55 +01:00
|
|
|
udev
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXcursor
|
|
|
|
libXi
|
2018-03-01 20:05:20 +01:00
|
|
|
libxcb
|
2017-03-05 16:38:55 +01:00
|
|
|
glib
|
|
|
|
libXScrnSaver
|
|
|
|
libxkbfile
|
|
|
|
libXtst
|
|
|
|
nss
|
|
|
|
nspr
|
|
|
|
cups
|
|
|
|
alsaLib
|
|
|
|
expat
|
2019-05-22 13:03:39 +02:00
|
|
|
gdk-pixbuf
|
2017-03-05 16:38:55 +01:00
|
|
|
dbus
|
|
|
|
libXdamage
|
|
|
|
libXrandr
|
|
|
|
atk
|
|
|
|
pango
|
|
|
|
cairo
|
|
|
|
freetype
|
|
|
|
fontconfig
|
|
|
|
libXcomposite
|
|
|
|
libXfixes
|
|
|
|
libXrender
|
2019-01-01 20:30:56 +01:00
|
|
|
gtk3
|
2018-02-25 03:23:58 +01:00
|
|
|
libgnome-keyring
|
2019-01-01 20:30:56 +01:00
|
|
|
openssl
|
2019-06-20 06:52:02 +02:00
|
|
|
at-spi2-atk
|
2019-06-20 05:55:12 +02:00
|
|
|
libuuid
|
2019-08-09 23:37:11 +02:00
|
|
|
e2fsprogs
|
|
|
|
krb5
|
2017-03-05 16:38:55 +01:00
|
|
|
];
|
|
|
|
|
2017-04-01 23:25:34 +02:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "gitkraken";
|
|
|
|
exec = "gitkraken";
|
2018-05-31 23:04:50 +02:00
|
|
|
icon = "gitkraken";
|
2017-04-01 23:25:34 +02:00
|
|
|
desktopName = "GitKraken";
|
|
|
|
genericName = "Git Client";
|
|
|
|
categories = "Application;Development;";
|
|
|
|
comment = "Graphical Git client from Axosoft";
|
|
|
|
};
|
|
|
|
|
2019-02-10 18:45:37 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
|
2019-02-20 19:49:41 +01:00
|
|
|
buildInputs = [ dpkg gtk3 gnome3.adwaita-icon-theme hicolor-icon-theme ];
|
2017-04-01 23:25:34 +02:00
|
|
|
|
2018-05-31 23:04:50 +02:00
|
|
|
unpackCmd = ''
|
|
|
|
mkdir out
|
|
|
|
dpkg -x $curSrc out
|
|
|
|
'';
|
2017-04-01 23:25:34 +02:00
|
|
|
|
2018-05-31 23:04:50 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
pushd usr
|
|
|
|
pushd share
|
|
|
|
substituteInPlace applications/gitkraken.desktop \
|
2019-03-14 19:45:37 +01:00
|
|
|
--replace /usr/share/gitkraken $out/bin
|
2018-05-31 23:04:50 +02:00
|
|
|
popd
|
|
|
|
rm -rf bin/gitkraken share/lintian
|
|
|
|
cp -av share bin $out/
|
|
|
|
popd
|
2019-02-06 06:57:16 +01:00
|
|
|
|
2019-02-10 18:45:37 +01:00
|
|
|
ln -s $out/share/gitkraken/gitkraken $out/bin/gitkraken
|
2018-05-31 23:04:50 +02:00
|
|
|
'';
|
2017-04-01 23:25:34 +02:00
|
|
|
|
2018-05-31 23:04:50 +02:00
|
|
|
postFixup = ''
|
|
|
|
pushd $out/share/gitkraken
|
|
|
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" gitkraken
|
2017-04-01 23:25:34 +02:00
|
|
|
|
2018-05-31 23:04:50 +02: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 16:38:55 +01:00
|
|
|
'';
|
|
|
|
|
2017-03-24 22:01:41 +01:00
|
|
|
meta = {
|
2017-03-05 16:38:55 +01: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;
|
2019-08-18 04:04:38 +02:00
|
|
|
maintainers = with maintainers; [ xnwdd evanjs ];
|
2017-03-05 16:38:55 +01:00
|
|
|
};
|
|
|
|
}
|