treewide: move "extensions" drvs to dir

This cleans up the tree for pkgs/applications somewhat. Should not
change any hashes.
This commit is contained in:
Matthew Bauer
2018-04-17 13:50:49 -05:00
parent 6c182dd14d
commit 52893d5276
25 changed files with 24 additions and 24 deletions
+46
View File
@@ -0,0 +1,46 @@
{ stdenv, fetchurl, python2Packages }:
python2Packages.buildPythonApplication rec {
version = "2.9.3.1";
name = "electrum-dash-${version}";
src = fetchurl {
url = "https://github.com/akhavr/electrum-dash/releases/download/${version}/Electrum-DASH-${version}.tar.gz";
#"https://github.com/dashpay/electrum-dash/releases/download/v${version}/Electrum-DASH-${version}.tar.gz";
sha256 = "9b7ac205f63fd4bfb15d77a34a4451ef82caecf096f31048a7603bd276dfc33e";
};
propagatedBuildInputs = with python2Packages; [
dnspython
ecdsa
pbkdf2
protobuf
pyasn1
pyasn1-modules
pycrypto
pyqt4
qrcode
requests
pyaes
tlslite
x11_hash
mnemonic
jsonrpclib
# plugins
trezor
];
preInstall = ''
mkdir -p $out/share
sed -i 's@usr_share = .*@usr_share = os.getenv("out")+"/share"@' setup.py
pyrcc4 icons.qrc -o gui/qt/icons_rc.py
'';
meta = with stdenv.lib; {
description = "Electrum DASH";
homepage = https://github.com/dashpay/electrum-dash;
license = licenses.gpl3;
maintainers = with maintainers; [ np ];
};
}
+55
View File
@@ -0,0 +1,55 @@
{ stdenv
, fetchurl
, python3Packages
}:
python3Packages.buildPythonApplication rec {
name = "electrum-ltc-${version}";
version = "3.1.2.1";
src = fetchurl {
url = "https://electrum-ltc.org/download/Electrum-LTC-${version}.tar.gz";
sha256 = "0sdql4k8g3py941rzdskm3k4hkwam4hzvg4qlvs0b5pw139mri86";
};
propagatedBuildInputs = with python3Packages; [
pyaes
ecdsa
pbkdf2
requests
qrcode
py_scrypt
pyqt5
protobuf
dnspython
jsonrpclib-pelix
pysocks
];
preBuild = ''
sed -i 's,usr_share = .*,usr_share = "'$out'/share",g' setup.py
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 ];
};
}