2021-06-10 03:57:09 +01:00
|
|
|
{ lib, stdenv, libXcomposite, libgnome-keyring, makeWrapper, udev, curl, alsa-lib
|
2021-05-07 22:18:14 +01:00
|
|
|
, libXfixes, atk, gtk3, libXrender, pango, gnome, cairo, freetype, fontconfig
|
2018-03-01 19:05:20 +00:00
|
|
|
, libX11, libXi, libxcb, libXext, libXcursor, glib, libXScrnSaver, libxkbfile, libXtst
|
2020-01-31 19:23:08 +00:00
|
|
|
, nss, nspr, cups, fetchzip, expat, gdk-pixbuf, libXdamage, libXrandr, dbus
|
|
|
|
, makeDesktopItem, openssl, wrapGAppsHook, at-spi2-atk, at-spi2-core, libuuid
|
2020-09-05 20:48:02 +01:00
|
|
|
, e2fsprogs, krb5, libdrm, mesa
|
2017-03-05 15:38:55 +00:00
|
|
|
}:
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2017-03-24 21:01:41 +00:00
|
|
|
|
2018-03-12 17:34:46 +00:00
|
|
|
let
|
2021-05-29 14:25:19 +01:00
|
|
|
curlWithGnuTls = curl.override { gnutlsSupport = true; opensslSupport = false; };
|
2018-03-12 17:34:46 +00:00
|
|
|
in
|
2017-03-05 15:38:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gitkraken";
|
2021-10-18 12:09:04 +01:00
|
|
|
version = "8.1.0";
|
2017-03-05 15:38:55 +00:00
|
|
|
|
2020-01-31 19:23:08 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://release.axocdn.com/linux/GitKraken-v${version}.tar.gz";
|
2021-10-18 12:09:04 +01:00
|
|
|
sha256 = "1115616d642chnisil7gv6fxw699sryphrfrp92cq3vi6lcwqbn8";
|
2017-03-05 15:38:55 +00:00
|
|
|
};
|
|
|
|
|
2020-01-31 19:23:08 +00:00
|
|
|
dontBuild = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
|
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
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib
|
2017-03-05 15:38:55 +00:00
|
|
|
expat
|
2019-05-22 12:03:39 +01:00
|
|
|
gdk-pixbuf
|
2017-03-05 15:38:55 +00:00
|
|
|
dbus
|
|
|
|
libXdamage
|
|
|
|
libXrandr
|
|
|
|
atk
|
|
|
|
pango
|
|
|
|
cairo
|
|
|
|
freetype
|
|
|
|
fontconfig
|
|
|
|
libXcomposite
|
|
|
|
libXfixes
|
|
|
|
libXrender
|
2019-01-01 19:30:56 +00:00
|
|
|
gtk3
|
2018-02-25 02:23:58 +00:00
|
|
|
libgnome-keyring
|
2019-01-01 19:30:56 +00:00
|
|
|
openssl
|
2019-06-20 05:52:02 +01:00
|
|
|
at-spi2-atk
|
2020-01-31 19:23:08 +00:00
|
|
|
at-spi2-core
|
2019-06-20 04:55:12 +01:00
|
|
|
libuuid
|
2019-08-09 22:37:11 +01:00
|
|
|
e2fsprogs
|
|
|
|
krb5
|
2020-09-05 20:48:02 +01:00
|
|
|
libdrm
|
|
|
|
mesa
|
2017-03-05 15:38:55 +00:00
|
|
|
];
|
|
|
|
|
2017-04-01 22:25:34 +01:00
|
|
|
desktopItem = makeDesktopItem {
|
2021-01-24 00:11:22 +00:00
|
|
|
name = pname;
|
2017-04-01 22:25:34 +01:00
|
|
|
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";
|
2020-06-25 03:18:37 +01:00
|
|
|
categories = "Development;";
|
2017-04-01 22:25:34 +01:00
|
|
|
comment = "Graphical Git client from Axosoft";
|
|
|
|
};
|
|
|
|
|
2020-01-31 19:23:08 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
|
2021-05-07 22:18:14 +01:00
|
|
|
buildInputs = [ gtk3 gnome.adwaita-icon-theme ];
|
2017-04-01 22:25:34 +01:00
|
|
|
|
2018-05-31 22:04:50 +01:00
|
|
|
installPhase = ''
|
2019-10-18 17:26:12 +01:00
|
|
|
runHook preInstall
|
2019-02-06 05:57:16 +00:00
|
|
|
|
2020-01-31 19:23:08 +00:00
|
|
|
mkdir -p $out/share/gitkraken/
|
|
|
|
cp -R $src/* $out/share/gitkraken/
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
2019-02-10 17:45:37 +00:00
|
|
|
ln -s $out/share/gitkraken/gitkraken $out/bin/gitkraken
|
2020-01-31 19:23:08 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/applications
|
2021-01-24 00:11:22 +00:00
|
|
|
ln -s ${desktopItem}/share/applications/* $out/share/applications
|
2020-01-31 19:23:08 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/pixmaps
|
|
|
|
cp gitkraken.png $out/share/pixmaps/gitkraken.png
|
|
|
|
|
2019-10-18 17:26:12 +01:00
|
|
|
runHook postInstall
|
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 = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.gitkraken.com/";
|
2017-03-05 15:38:55 +00:00
|
|
|
description = "The downright luxurious and most popular Git client for Windows, Mac & Linux";
|
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = platforms.linux;
|
2019-08-18 03:04:38 +01:00
|
|
|
maintainers = with maintainers; [ xnwdd evanjs ];
|
2017-03-05 15:38:55 +00:00
|
|
|
};
|
|
|
|
}
|