2020-10-25 20:38:25 +01:00
|
|
|
{ stdenv, lib, fetchurl, unzip, glib, systemd, nss, nspr, gtk3-x11, pango,
|
2021-06-10 04:57:09 +02:00
|
|
|
atk, cairo, gdk-pixbuf, xorg, xorg_sys_opengl, util-linux, alsa-lib, dbus, at-spi2-atk,
|
2021-01-12 16:02:47 +01:00
|
|
|
cups, vivaldi-ffmpeg-codecs, libpulseaudio, at-spi2-core, libxkbcommon, mesa }:
|
2019-05-27 09:53:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "exodus";
|
2021-08-26 15:25:51 +02:00
|
|
|
version = "21.8.19";
|
2019-05-27 09:53:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-02-10 16:27:20 +01:00
|
|
|
url = "https://downloads.exodus.io/releases/${pname}-linux-x64-${version}.zip";
|
2021-08-26 15:25:51 +02:00
|
|
|
sha256 = "1ssacadx5hdxq0cljb869ds3d11i4fyy3qd5hzh8wk5mlpdnba6k";
|
2019-05-27 09:53:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
unpackCmd = ''
|
2020-02-10 16:24:59 +01:00
|
|
|
${unzip}/bin/unzip "$src" -x "Exodus*/lib*so"
|
2019-05-27 09:53:51 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-02-10 16:24:59 +01:00
|
|
|
mkdir -p $out/bin $out/share/applications
|
|
|
|
cd Exodus-linux-x64
|
|
|
|
cp -r . $out
|
|
|
|
ln -s $out/Exodus $out/bin/Exodus
|
2020-02-10 16:25:30 +01:00
|
|
|
ln -s $out/bin/Exodus $out/bin/exodus
|
2020-02-10 16:24:59 +01:00
|
|
|
ln -s $out/exodus.desktop $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/exodus.desktop \
|
2021-08-27 18:18:41 +02:00
|
|
|
--replace 'Exec=bash -c "cd \`dirname %k\` && ./Exodus %u"' "Exec=Exodus %u"
|
2019-05-27 09:53:51 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
preFixup = let
|
|
|
|
libPath = lib.makeLibraryPath [
|
2020-02-10 16:24:59 +01:00
|
|
|
glib
|
|
|
|
nss
|
|
|
|
nspr
|
|
|
|
gtk3-x11
|
2020-10-25 20:38:25 +01:00
|
|
|
pango
|
2020-02-10 16:24:59 +01: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-26 15:25:51 +02:00
|
|
|
xorg.libxshmfence
|
2020-02-10 16:24:59 +01:00
|
|
|
xorg.libXtst
|
|
|
|
xorg_sys_opengl
|
2020-11-24 16:29:28 +01:00
|
|
|
util-linux
|
2020-02-10 16:24:59 +01:00
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libXScrnSaver
|
2021-06-10 04:57:09 +02:00
|
|
|
alsa-lib
|
2020-02-10 16:24:59 +01:00
|
|
|
dbus.lib
|
|
|
|
at-spi2-atk
|
2020-02-10 16:26:02 +01:00
|
|
|
at-spi2-core
|
2020-02-10 16:24:59 +01:00
|
|
|
cups.lib
|
|
|
|
libpulseaudio
|
|
|
|
systemd
|
|
|
|
vivaldi-ffmpeg-codecs
|
2021-01-12 16:02:47 +01:00
|
|
|
libxkbcommon
|
|
|
|
mesa
|
2019-05-27 09:53:51 +02:00
|
|
|
];
|
|
|
|
in ''
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
|
|
--set-rpath "${libPath}" \
|
|
|
|
$out/Exodus
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-05-27 09:53:51 +02:00
|
|
|
homepage = "https://www.exodus.io/";
|
|
|
|
description = "Top-rated cryptocurrency wallet with Trezor integration and built-in Exchange";
|
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = platforms.linux;
|
2020-09-07 12:12:11 +02:00
|
|
|
maintainers = with maintainers; [ mmahut rople380 ];
|
2019-05-27 09:53:51 +02:00
|
|
|
};
|
|
|
|
}
|