2022-08-12 12:06:08 +00:00
|
|
|
{ stdenv, lib, fetchzip, glib, systemd, nss, nspr, gtk3-x11, pango,
|
2021-06-28 23:13:55 +00:00
|
|
|
atk, cairo, gdk-pixbuf, xorg, xorg_sys_opengl, util-linux, alsa-lib, dbus, at-spi2-atk,
|
2021-01-15 22:18:51 +00:00
|
|
|
cups, vivaldi-ffmpeg-codecs, libpulseaudio, at-spi2-core, libxkbcommon, mesa }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "exodus";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "22.8.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
src = fetchzip {
|
2020-04-24 23:36:52 +00:00
|
|
|
url = "https://downloads.exodus.io/releases/${pname}-linux-x64-${version}.zip";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-jNzHh4zYhFzpFZAC9rHmwjTdFkbpROSEN3qpL7geiOU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/applications
|
|
|
|
cp -r . $out
|
|
|
|
ln -s $out/Exodus $out/bin/Exodus
|
|
|
|
ln -s $out/bin/Exodus $out/bin/exodus
|
|
|
|
ln -s $out/exodus.desktop $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/exodus.desktop \
|
2021-09-18 10:52:07 +00:00
|
|
|
--replace 'Exec=bash -c "cd \`dirname %k\` && ./Exodus %u"' "Exec=Exodus %u"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
preFixup = let
|
|
|
|
libPath = lib.makeLibraryPath [
|
|
|
|
glib
|
|
|
|
nss
|
|
|
|
nspr
|
|
|
|
gtk3-x11
|
2020-10-27 00:29:36 +00:00
|
|
|
pango
|
2020-04-24 23:36:52 +00:00
|
|
|
atk
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libxcb
|
|
|
|
xorg.libXcomposite
|
|
|
|
xorg.libXcursor
|
|
|
|
xorg.libXdamage
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXfixes
|
|
|
|
xorg.libXi
|
|
|
|
xorg.libXrender
|
2021-08-27 14:25:00 +00:00
|
|
|
xorg.libxshmfence
|
2020-04-24 23:36:52 +00:00
|
|
|
xorg.libXtst
|
|
|
|
xorg_sys_opengl
|
2020-11-24 20:58:05 +00:00
|
|
|
util-linux
|
2020-04-24 23:36:52 +00:00
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libXScrnSaver
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
dbus.lib
|
|
|
|
at-spi2-atk
|
|
|
|
at-spi2-core
|
|
|
|
cups.lib
|
|
|
|
libpulseaudio
|
|
|
|
systemd
|
|
|
|
vivaldi-ffmpeg-codecs
|
2021-01-15 22:18:51 +00:00
|
|
|
libxkbcommon
|
|
|
|
mesa
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
in ''
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
|
|
--set-rpath "${libPath}" \
|
|
|
|
$out/Exodus
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.exodus.io/";
|
|
|
|
description = "Top-rated cryptocurrency wallet with Trezor integration and built-in Exchange";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = platforms.linux;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ mmahut rople380 Crafter ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|