2020-08-15 21:47:41 +01:00
|
|
|
{ lib, appimageTools, fetchurl, makeDesktopItem
|
2021-03-03 16:25:30 +00:00
|
|
|
, gsettings-desktop-schemas, gtk3
|
2020-08-15 21:47:41 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "MyCrypto";
|
2021-05-20 12:52:00 +01:00
|
|
|
version = "1.7.16";
|
|
|
|
hash = "sha256-fvV/dT9tj8/d/kjM0dVj3IC/O7Y/yG8fscDCzUBwHKI=";
|
2020-08-15 21:47:41 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mycryptohq/mycrypto/releases/download/${version}/linux-x86-64_${version}_MyCrypto.AppImage";
|
2021-05-20 12:52:00 +01:00
|
|
|
inherit hash;
|
2020-08-15 21:47:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
|
|
inherit name src;
|
|
|
|
};
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = pname;
|
|
|
|
desktopName = pname;
|
|
|
|
comment = "MyCrypto is a free, open-source interface for interacting with the blockchain";
|
|
|
|
exec = pname;
|
|
|
|
icon = "mycrypto";
|
|
|
|
categories = "Finance;";
|
|
|
|
};
|
|
|
|
|
|
|
|
in appimageTools.wrapType2 rec {
|
|
|
|
inherit name src;
|
|
|
|
|
|
|
|
profile = ''
|
2021-03-03 16:25:30 +00:00
|
|
|
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS
|
2020-08-15 21:47:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
multiPkgs = null; # no p32bit needed
|
|
|
|
extraPkgs = appimageTools.defaultFhsEnvArgs.multiPkgs;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mv $out/bin/{${name},${pname}}
|
|
|
|
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -rt $out/share ${desktopItem}/share/applications ${appimageContents}/usr/share/icons
|
2020-08-15 22:11:03 +01:00
|
|
|
chmod -R +w $out/share
|
|
|
|
mv $out/share/icons/hicolor/{0x0,256x256}
|
2020-08-15 21:47:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A 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" ];
|
|
|
|
maintainers = with maintainers; [ oxalica ];
|
|
|
|
};
|
|
|
|
}
|