nixpkgs/pkgs/applications/blockchains/exodus/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
2.0 KiB
Nix
Raw Normal View History

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