mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
Merge pull request #78420 from evanjs/gitkraken-6.5.0
gitkraken: 6.4.1 -> 6.5.1
This commit is contained in:
commit
9c22a82d2b
@ -1,8 +1,8 @@
|
||||
{ stdenv, libXcomposite, libgnome-keyring, makeWrapper, udev, curl, alsaLib
|
||||
, libXfixes, atk, gtk3, libXrender, pango, gnome3, cairo, freetype, fontconfig
|
||||
, libX11, libXi, libxcb, libXext, libXcursor, glib, libXScrnSaver, libxkbfile, libXtst
|
||||
, nss, nspr, cups, fetchurl, expat, gdk-pixbuf, libXdamage, libXrandr, dbus
|
||||
, dpkg, makeDesktopItem, openssl, wrapGAppsHook, at-spi2-atk, libuuid
|
||||
, nss, nspr, cups, fetchzip, expat, gdk-pixbuf, libXdamage, libXrandr, dbus
|
||||
, makeDesktopItem, openssl, wrapGAppsHook, at-spi2-atk, at-spi2-core, libuuid
|
||||
, e2fsprogs, krb5
|
||||
}:
|
||||
|
||||
@ -13,13 +13,16 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gitkraken";
|
||||
version = "6.4.1";
|
||||
version = "6.5.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://release.axocdn.com/linux/GitKraken-v${version}.deb";
|
||||
sha256 = "1w8iwpbr6nwzhhf63fvr7pd66yjx3jgjy4gx5y02qxa3ip5psq5b";
|
||||
src = fetchzip {
|
||||
url = "https://release.axocdn.com/linux/GitKraken-v${version}.tar.gz";
|
||||
sha256 = "0dwjwismv4rfw58801g2ay51h9qrffcxgbl910frd4i530w0y44p";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
dontConfigure = true;
|
||||
|
||||
libPath = makeLibraryPath [
|
||||
stdenv.cc.cc.lib
|
||||
curlWithGnuTls
|
||||
@ -54,6 +57,7 @@ stdenv.mkDerivation rec {
|
||||
libgnome-keyring
|
||||
openssl
|
||||
at-spi2-atk
|
||||
at-spi2-core
|
||||
libuuid
|
||||
e2fsprogs
|
||||
krb5
|
||||
@ -69,27 +73,27 @@ stdenv.mkDerivation rec {
|
||||
comment = "Graphical Git client from Axosoft";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ dpkg makeWrapper wrapGAppsHook ];
|
||||
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
|
||||
buildInputs = [ gtk3 gnome3.adwaita-icon-theme ];
|
||||
|
||||
unpackCmd = ''
|
||||
mkdir out
|
||||
dpkg -x $curSrc out
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
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
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user