Merge pull request #259791 from oluceps/exodus-up

exodus: 23.5.22 -> 23.9.25
This commit is contained in:
Nick Cao
2023-10-14 10:04:52 -04:00
committed by GitHub
@@ -1,16 +1,42 @@
{ stdenv, lib, fetchzip, glib, systemd, nss, nspr, gtk3-x11, pango,
atk, cairo, gdk-pixbuf, xorg, xorg_sys_opengl, util-linux, alsa-lib, dbus, at-spi2-atk,
cups, vivaldi-ffmpeg-codecs, libpulseaudio, at-spi2-core, libxkbcommon, mesa }:
{ stdenv
, lib
, requireFile
, unzip
, glib
, systemd
, nss
, nspr
, gtk3-x11
, pango
, atk
, cairo
, gdk-pixbuf
, xorg
, xorg_sys_opengl
, util-linux
, alsa-lib
, dbus
, at-spi2-atk
, cups
, vivaldi-ffmpeg-codecs
, libpulseaudio
, at-spi2-core
, libxkbcommon
, mesa
}:
stdenv.mkDerivation rec {
pname = "exodus";
version = "23.5.22";
version = "23.9.25";
src = fetchzip {
src = requireFile {
name = "exodus-linux-x64-${version}.zip";
url = "https://downloads.exodus.com/releases/${pname}-linux-x64-${version}.zip";
sha256 = "sha256-CZuT0nlKyF7LRGqNezm98MHcQa2Uhd8y+NiKE5mi0jk=";
sha256 = "a3e314de257e1ec01baa1023886f327ade4b233d833f7fe79f6c3e0f26d07ced";
};
nativeBuildInputs = [ unzip ];
installPhase = ''
mkdir -p $out/bin $out/share/applications
cp -r . $out
@@ -24,48 +50,50 @@ stdenv.mkDerivation rec {
dontPatchELF = true;
dontBuild = true;
preFixup = let
libPath = lib.makeLibraryPath [
glib
nss
nspr
gtk3-x11
pango
atk
cairo
gdk-pixbuf
xorg.libX11
xorg.libxcb
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrender
xorg.libxshmfence
xorg.libXtst
xorg_sys_opengl
util-linux
xorg.libXrandr
xorg.libXScrnSaver
alsa-lib
dbus.lib
at-spi2-atk
at-spi2-core
cups.lib
libpulseaudio
systemd
vivaldi-ffmpeg-codecs
libxkbcommon
mesa
];
in ''
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${libPath}" \
$out/Exodus
'';
preFixup =
let
libPath = lib.makeLibraryPath [
glib
nss
nspr
gtk3-x11
pango
atk
cairo
gdk-pixbuf
xorg.libX11
xorg.libxcb
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrender
xorg.libxshmfence
xorg.libXtst
xorg_sys_opengl
util-linux
xorg.libXrandr
xorg.libXScrnSaver
alsa-lib
dbus.lib
at-spi2-atk
at-spi2-core
cups.lib
libpulseaudio
systemd
vivaldi-ffmpeg-codecs
libxkbcommon
mesa
];
in
''
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${libPath}" \
$out/Exodus
'';
meta = with lib; {
homepage = "https://www.exodus.io/";