Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

37 lines
1.3 KiB
Nix

{
lib,
fetchurl,
appimageTools,
imagemagick,
}:
appimageTools.wrapAppImage rec {
pname = "chain-desktop-wallet";
version = "1.5.1";
src = appimageTools.extractType2 {
inherit pname version;
src = fetchurl {
url = "https://github.com/crypto-com/chain-desktop-wallet/releases/download/v${version}/Crypto.com-DeFi-Desktop-Wallet-${version}.AppImage";
hash = "sha256-dXJMU6abg31ZyETKl5Hh6fxn1Gd1FbSHGJh1z0R7XPM=";
};
};
extraInstallCommands = ''
install -m 444 -D ${src}/chain-desktop-wallet.desktop $out/share/applications/chain-desktop-wallet.desktop
${imagemagick}/bin/magick ${src}/chain-desktop-wallet.png -resize 512x512 chain-desktop-wallet_512.png
install -m 444 -D chain-desktop-wallet_512.png $out/share/icons/hicolor/512x512/apps/chain-desktop-wallet.png
substituteInPlace $out/share/applications/chain-desktop-wallet.desktop \
--replace-fail "Exec=AppRun --no-sandbox %U" "Exec=chain-desktop-wallet %U"
'';
meta = {
description = "Crypto.org Chain desktop wallet (Beta)";
homepage = "https://github.com/crypto-com/chain-desktop-wallet";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ th0rgal ];
platforms = [ "x86_64-linux" ];
mainProgram = "chain-desktop-wallet";
};
}