depot/pkgs/by-name/ex/exodus/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

111 lines
2.3 KiB
Nix

{
stdenv,
lib,
requireFile,
unzip,
glib,
systemd,
nss,
nspr,
gtk3-x11,
pango,
atk,
cairo,
gdk-pixbuf,
xorg,
xorg_sys_opengl,
util-linux,
alsa-lib,
dbus,
at-spi2-atk,
cups,
vivaldi-ffmpeg-codecs,
libpulseaudio,
at-spi2-core,
libxkbcommon,
mesa,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "exodus";
version = "24.41.3";
src = requireFile {
name = "exodus-linux-x64-${finalAttrs.version}.zip";
url = "https://downloads.exodus.com/releases/exodus-linux-x64-${finalAttrs.version}.zip";
hash = "sha256-cq8vHE/wAGRu20F3N3q9F+JXLV8VgGbo5JE9Q2OFuMw=";
};
nativeBuildInputs = [ unzip ];
installPhase = ''
mkdir -p $out/bin $out/share/applications
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 %u"' "Exec=Exodus %u"
'';
dontPatchELF = true;
dontBuild = true;
preFixup =
let
libPath = lib.makeLibraryPath [
glib
nss
nspr
gtk3-x11
pango
atk
cairo
gdk-pixbuf
xorg.libX11
xorg.libxcb
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrender
xorg.libxshmfence
xorg.libXtst
xorg_sys_opengl
util-linux
xorg.libXrandr
xorg.libXScrnSaver
alsa-lib
dbus.lib
at-spi2-atk
at-spi2-core
cups.lib
libpulseaudio
systemd
vivaldi-ffmpeg-codecs
libxkbcommon
mesa
];
in
''
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${libPath}" \
$out/Exodus
'';
meta = with lib; {
homepage = "https://www.exodus.io/";
description = "Top-rated cryptocurrency wallet with Trezor integration and built-in Exchange";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
platforms = platforms.linux;
maintainers = with maintainers; [
mmahut
rople380
Crafter
];
};
})