gitkraken: 6.4.1 -> 6.5.1
- use fetchzip to retrieve the tarball for GitKraken, as the deb now tries to change permissions and etc which nix will not like - add at-spi2-core dependency - remove dpkg dependency - refactor expression to properly handle the GitKraken tarball (compared to the deb archive)
This commit is contained in:
parent
bf348f07d7
commit
7c9bd98e86
@ -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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user