2020-10-27 00:29:36 +00:00
|
|
|
{ stdenv, lib, fetchurl, unzip, glib, systemd, nss, nspr, gtk3-x11, pango,
|
2020-04-24 23:36:52 +00:00
|
|
|
atk, cairo, gdk-pixbuf, xorg, xorg_sys_opengl, utillinux, alsaLib, dbus, at-spi2-atk,
|
|
|
|
cups, vivaldi-ffmpeg-codecs, libpulseaudio, at-spi2-core }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "exodus";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "20.8.28";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.exodus.io/releases/${pname}-linux-x64-${version}.zip";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "fde9165f71f0d641f6892ddce3ec26d200e8095a383f2b4c8f924de4041d65ef";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
unpackCmd = ''
|
|
|
|
${unzip}/bin/unzip "$src" -x "Exodus*/lib*so"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/applications
|
|
|
|
cd Exodus-linux-x64
|
|
|
|
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 \
|
|
|
|
--replace 'Exec=bash -c "cd `dirname %k` && ./Exodus"' "Exec=Exodus"
|
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
|
xorg.libXtst
|
|
|
|
xorg_sys_opengl
|
|
|
|
utillinux
|
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libXScrnSaver
|
|
|
|
alsaLib
|
|
|
|
dbus.lib
|
|
|
|
at-spi2-atk
|
|
|
|
at-spi2-core
|
|
|
|
cups.lib
|
|
|
|
libpulseaudio
|
|
|
|
systemd
|
|
|
|
vivaldi-ffmpeg-codecs
|
|
|
|
];
|
|
|
|
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;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ mmahut rople380 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|