Merge pull request #79739 from mmahut/exodus

exodus: 19.5.24 -> 20.1.30
This commit is contained in:
Marek Mahut 2020-02-10 17:44:50 +01:00 committed by GitHub
commit 5301420990
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,29 +1,30 @@
{ stdenv, lib, fetchurl, unzip, glib, systemd, nss, nspr, gtk3-x11, gnome2, { stdenv, lib, fetchurl, unzip, glib, systemd, nss, nspr, gtk3-x11, gnome2,
atk, cairo, gdk-pixbuf, xorg, xorg_sys_opengl, utillinux, alsaLib, dbus, at-spi2-atk, atk, cairo, gdk-pixbuf, xorg, xorg_sys_opengl, utillinux, alsaLib, dbus, at-spi2-atk,
cups, vivaldi-ffmpeg-codecs, libpulseaudio }: cups, vivaldi-ffmpeg-codecs, libpulseaudio, at-spi2-core }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "exodus"; pname = "exodus";
version = "19.5.24"; version = "20.1.30";
src = fetchurl { src = fetchurl {
url = "https://exodusbin.azureedge.net/releases/${pname}-linux-x64-${version}.zip"; url = "https://downloads.exodus.io/releases/${pname}-linux-x64-${version}.zip";
sha256 = "1yx296i525qmpqh8f2vax7igffg826nr8cyq1l0if35374bdsqdw"; sha256 = "0jns5zqjm0gqn18ypghbgk6gb713mh7p44ax1r8y4vcwijlp5nql";
}; };
sourceRoot = "."; sourceRoot = ".";
unpackCmd = '' unpackCmd = ''
${unzip}/bin/unzip "$src" -x "Exodus*/lib*so" ${unzip}/bin/unzip "$src" -x "Exodus*/lib*so"
''; '';
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/share/applications mkdir -p $out/bin $out/share/applications
cd Exodus-linux-x64 cd Exodus-linux-x64
cp -r . $out cp -r . $out
ln -s $out/Exodus $out/bin/Exodus ln -s $out/Exodus $out/bin/Exodus
ln -s $out/exodus.desktop $out/share/applications ln -s $out/bin/Exodus $out/bin/exodus
substituteInPlace $out/share/applications/exodus.desktop \ ln -s $out/exodus.desktop $out/share/applications
--replace 'Exec=bash -c "cd `dirname %k` && ./Exodus"' "Exec=Exodus" substituteInPlace $out/share/applications/exodus.desktop \
--replace 'Exec=bash -c "cd `dirname %k` && ./Exodus"' "Exec=Exodus"
''; '';
dontPatchELF = true; dontPatchELF = true;
@ -31,35 +32,36 @@ stdenv.mkDerivation rec {
preFixup = let preFixup = let
libPath = lib.makeLibraryPath [ libPath = lib.makeLibraryPath [
glib glib
nss nss
nspr nspr
gtk3-x11 gtk3-x11
gnome2.pango gnome2.pango
atk atk
cairo cairo
gdk-pixbuf gdk-pixbuf
xorg.libX11 xorg.libX11
xorg.libxcb xorg.libxcb
xorg.libXcomposite xorg.libXcomposite
xorg.libXcursor xorg.libXcursor
xorg.libXdamage xorg.libXdamage
xorg.libXext xorg.libXext
xorg.libXfixes xorg.libXfixes
xorg.libXi xorg.libXi
xorg.libXrender xorg.libXrender
xorg.libXtst xorg.libXtst
xorg_sys_opengl xorg_sys_opengl
utillinux utillinux
xorg.libXrandr xorg.libXrandr
xorg.libXScrnSaver xorg.libXScrnSaver
alsaLib alsaLib
dbus.lib dbus.lib
at-spi2-atk at-spi2-atk
cups.lib at-spi2-core
libpulseaudio cups.lib
systemd libpulseaudio
vivaldi-ffmpeg-codecs systemd
vivaldi-ffmpeg-codecs
]; ];
in '' in ''
patchelf \ patchelf \