aboutsummaryrefslogtreecommitdiff
path: root/pkgs/applications/blockchains/exodus/default.nix
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2019-08-28 10:37:52 -0700
committerWilliam Casarin <jb55@jb55.com>2019-08-29 05:01:42 -0700
commit72682e46546d6d024a29e2fde009372e03b45b9f (patch)
tree4f5c749f3fdff3f182d9f7b005339aa10fd53897 /pkgs/applications/blockchains/exodus/default.nix
parent58fd72f3e996856d5a4ba21ae25f87a82fe3e5dc (diff)
tree: rename altcoins to blockchains
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat (limited to 'pkgs/applications/blockchains/exodus/default.nix')
-rw-r--r--pkgs/applications/blockchains/exodus/default.nix78
1 files changed, 78 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/exodus/default.nix b/pkgs/applications/blockchains/exodus/default.nix
new file mode 100644
index 000000000000..bc354a5213ea
--- /dev/null
+++ b/pkgs/applications/blockchains/exodus/default.nix
@@ -0,0 +1,78 @@
+{ stdenv, lib, fetchurl, unzip, glib, systemd, nss, nspr, gtk3-x11, gnome2,
+atk, cairo, gdk-pixbuf, xorg, xorg_sys_opengl, utillinux, alsaLib, dbus, at-spi2-atk,
+cups, vivaldi-ffmpeg-codecs, libpulseaudio }:
+
+stdenv.mkDerivation rec {
+ pname = "exodus";
+ version = "19.5.24";
+
+ src = fetchurl {
+ url = "https://exodusbin.azureedge.net/releases/${pname}-linux-x64-${version}.zip";
+ sha256 = "1yx296i525qmpqh8f2vax7igffg826nr8cyq1l0if35374bdsqdw";
+ };
+
+ 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/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
+ 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
+ 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;
+ maintainers = [ maintainers.mmahut ];
+ };
+}