mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
crypto-org-wallet: 0.1.1 -> 1.5.1 (#399621)
This commit is contained in:
commit
00b900367b
1 changed files with 16 additions and 18 deletions
|
@ -5,33 +5,31 @@
|
||||||
imagemagick,
|
imagemagick,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
appimageTools.wrapAppImage rec {
|
||||||
pname = "chain-desktop-wallet";
|
pname = "chain-desktop-wallet";
|
||||||
version = "0.1.1";
|
version = "1.5.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = appimageTools.extractType2 {
|
||||||
url = "https://github.com/crypto-com/${pname}/releases/download/v${version}/${pname}-${version}-x86_64.AppImage";
|
inherit pname version;
|
||||||
sha256 = "12076hf8dlz0hg1pb2ixwlslrh8gi6s1iawnvhnn6vz4jmjvq356";
|
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=";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
|
||||||
in
|
|
||||||
appimageTools.wrapType2 rec {
|
|
||||||
inherit pname version src;
|
|
||||||
|
|
||||||
extraInstallCommands = ''
|
extraInstallCommands = ''
|
||||||
install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop
|
install -m 444 -D ${src}/chain-desktop-wallet.desktop $out/share/applications/chain-desktop-wallet.desktop
|
||||||
${imagemagick}/bin/convert ${appimageContents}/${pname}.png -resize 512x512 ${pname}_512.png
|
${imagemagick}/bin/magick ${src}/chain-desktop-wallet.png -resize 512x512 chain-desktop-wallet_512.png
|
||||||
install -m 444 -D ${pname}_512.png $out/share/icons/hicolor/512x512/apps/${pname}.png
|
install -m 444 -D chain-desktop-wallet_512.png $out/share/icons/hicolor/512x512/apps/chain-desktop-wallet.png
|
||||||
substituteInPlace $out/share/applications/${pname}.desktop \
|
substituteInPlace $out/share/applications/chain-desktop-wallet.desktop \
|
||||||
--replace 'Exec=AppRun --no-sandbox %U' 'Exec=${pname} %U'
|
--replace-fail "Exec=AppRun --no-sandbox %U" "Exec=chain-desktop-wallet %U"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Crypto.org Chain desktop wallet (Beta)";
|
description = "Crypto.org Chain desktop wallet (Beta)";
|
||||||
homepage = "https://github.com/crypto-com/chain-desktop-wallet";
|
homepage = "https://github.com/crypto-com/chain-desktop-wallet";
|
||||||
license = licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = with maintainers; [ th0rgal ];
|
maintainers = with lib.maintainers; [ th0rgal ];
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
mainProgram = "chain-desktop-wallet";
|
mainProgram = "chain-desktop-wallet";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue