2019-06-16 22:59:06 +03:00
|
|
|
{ stdenv, lib, fetchurl, unzip, glib, systemd, nss, nspr, gtk3-x11, gnome2,
|
2019-05-22 14:03:39 +03:00
|
|
|
atk, cairo, gdk-pixbuf, xorg, xorg_sys_opengl, utillinux, alsaLib, dbus, at-spi2-atk,
|
2020-02-10 18:26:02 +03:00
|
|
|
cups, vivaldi-ffmpeg-codecs, libpulseaudio, at-spi2-core }:
|
2019-05-27 10:53:51 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "exodus";
|
2020-02-10 18:27:20 +03:00
|
|
|
version = "20.1.30";
|
2019-05-27 10:53:51 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-02-10 18:27:20 +03:00
|
|
|
url = "https://downloads.exodus.io/releases/${pname}-linux-x64-${version}.zip";
|
|
|
|
sha256 = "0jns5zqjm0gqn18ypghbgk6gb713mh7p44ax1r8y4vcwijlp5nql";
|
2019-05-27 10:53:51 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
unpackCmd = ''
|
2020-02-10 18:24:59 +03:00
|
|
|
${unzip}/bin/unzip "$src" -x "Exodus*/lib*so"
|
2019-05-27 10:53:51 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-02-10 18:24:59 +03: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 18:25:30 +03:00
|
|
|
ln -s $out/bin/Exodus $out/bin/exodus
|
2020-02-10 18:24:59 +03:00
|
|
|
ln -s $out/exodus.desktop $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/exodus.desktop \
|
|
|
|
--replace 'Exec=bash -c "cd `dirname %k` && ./Exodus"' "Exec=Exodus"
|
2019-05-27 10:53:51 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
preFixup = let
|
|
|
|
libPath = lib.makeLibraryPath [
|
2020-02-10 18:24:59 +03:00
|
|
|
glib
|
|
|
|
nss
|
|
|
|
nspr
|
|
|
|
gtk3-x11
|
|
|
|
gnome2.pango
|
|
|
|
atk
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libxcb
|
|
|
|
xorg.libXcomposite
|
|
|
|
xorg.libXcursor
|
|
|
|
xorg.libXdamage
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXfixes
|
|
|
|
xorg.libXi
|
|
|
|
xorg.libXrender
|
|
|
|
xorg.libXtst
|
|
|
|
xorg_sys_opengl
|
|
|
|
utillinux
|
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libXScrnSaver
|
|
|
|
alsaLib
|
|
|
|
dbus.lib
|
|
|
|
at-spi2-atk
|
2020-02-10 18:26:02 +03:00
|
|
|
at-spi2-core
|
2020-02-10 18:24:59 +03:00
|
|
|
cups.lib
|
|
|
|
libpulseaudio
|
|
|
|
systemd
|
|
|
|
vivaldi-ffmpeg-codecs
|
2019-05-27 10:53:51 +03:00
|
|
|
];
|
|
|
|
in ''
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
|
|
--set-rpath "${libPath}" \
|
|
|
|
$out/Exodus
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://www.exodus.io/";
|
|
|
|
description = "Top-rated cryptocurrency wallet with Trezor integration and built-in Exchange";
|
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.mmahut ];
|
|
|
|
};
|
|
|
|
}
|