nixpkgs/pkgs/applications/misc/electrum-ltc/default.nix

56 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv
, fetchurl
2018-01-09 15:59:05 +00:00
, python3Packages
}:
2018-01-09 15:59:05 +00:00
python3Packages.buildPythonApplication rec {
name = "electrum-ltc-${version}";
2018-01-09 15:59:05 +00:00
version = "3.0.5.1";
src = fetchurl {
url = "https://electrum-ltc.org/download/Electrum-LTC-${version}.tar.gz";
2018-01-09 15:59:05 +00:00
sha256 = "1acsgzmd83cz6ha5fw63mi7123fr6gbiq537p5lxxfs2i8zrl63r";
};
2018-01-09 15:59:05 +00:00
propagatedBuildInputs = with python3Packages; [
pyaes
ecdsa
pbkdf2
requests
qrcode
2018-01-09 15:59:05 +00:00
py_scrypt
pyqt5
2017-09-05 15:11:41 +00:00
protobuf
dnspython
2018-01-09 15:59:05 +00:00
jsonrpclib-pelix
2017-12-27 11:48:11 +00:00
pysocks
];
preBuild = ''
sed -i 's,usr_share = .*,usr_share = "'$out'/share",g' setup.py
2018-01-09 15:59:05 +00:00
pyrcc5 icons.qrc -o gui/qt/icons_rc.py
# Recording the creation timestamps introduces indeterminism to the build
sed -i '/Created: .*/d' gui/qt/icons_rc.py
'';
checkPhase = ''
$out/bin/electrum-ltc help >/dev/null
'';
meta = with stdenv.lib; {
description = "Litecoin thin client";
longDescription = ''
Electrum-LTC is a simple, but powerful Litecoin wallet. A twelve-word
security passphrase (or seed) leaves intruders stranded and your peace
of mind intact. Keep it on paper, or in your head... and never worry
about losing your litecoins to theft or hardware failure. No waiting, no
lengthy blockchain downloads and no syncing to the network.
'';
homepage = https://electrum-ltc.org/;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ asymmetric ];
};
}