2024-05-01 12:42:20 +00:00
|
|
|
{ lib, appimageTools, fetchurl, makeDesktopItem }:
|
2020-08-15 20:47:41 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "MyCrypto";
|
2021-09-14 21:24:34 +00:00
|
|
|
version = "1.7.17";
|
|
|
|
sha256 = "20eb48989b5ae5e60e438eff6830ac79a0d89ac26dff058097260e747e866444"; # Taken from release's checksums.txt.gpg
|
2020-08-15 20:47:41 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mycryptohq/mycrypto/releases/download/${version}/linux-x86-64_${version}_MyCrypto.AppImage";
|
2021-09-14 21:24:34 +00:00
|
|
|
inherit sha256;
|
2020-08-15 20:47:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
2024-04-21 14:31:47 +00:00
|
|
|
inherit pname version src;
|
2020-08-15 20:47:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = pname;
|
|
|
|
desktopName = pname;
|
|
|
|
comment = "MyCrypto is a free, open-source interface for interacting with the blockchain";
|
|
|
|
exec = pname;
|
|
|
|
icon = "mycrypto";
|
2022-02-22 14:56:15 +00:00
|
|
|
categories = [ "Finance" ];
|
2020-08-15 20:47:41 +00:00
|
|
|
};
|
|
|
|
|
2024-04-24 20:51:13 +00:00
|
|
|
in appimageTools.wrapType2 {
|
2024-04-21 14:31:47 +00:00
|
|
|
inherit pname version src;
|
2020-08-15 20:47:41 +00:00
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -rt $out/share ${desktopItem}/share/applications ${appimageContents}/usr/share/icons
|
2020-08-15 21:11:03 +00:00
|
|
|
chmod -R +w $out/share
|
|
|
|
mv $out/share/icons/hicolor/{0x0,256x256}
|
2020-08-15 20:47:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Free, open-source interface for interacting with the blockchain";
|
|
|
|
longDescription = ''
|
|
|
|
MyCrypto is an open-source, client-side tool for generating ether wallets,
|
|
|
|
handling ERC-20 tokens, and interacting with the blockchain more easily.
|
|
|
|
'';
|
|
|
|
homepage = "https://mycrypto.com";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2023-07-19 07:49:36 +00:00
|
|
|
maintainers = [ ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "MyCrypto";
|
2020-08-15 20:47:41 +00:00
|
|
|
};
|
|
|
|
}
|