aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/misc/electrum/ltc.nix
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
committerMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
commitc4625b175f8200f643fd6e11010932ea44c78433 (patch)
treebce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/applications/misc/electrum/ltc.nix
parent49f735974dd103039ddc4cb576bb76555164a9e7 (diff)
parentd661aa56a8843e991261510c1bb28fdc2f6975ae (diff)
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7 git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/misc/electrum/ltc.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/misc/electrum/ltc.nix61
1 files changed, 61 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/misc/electrum/ltc.nix b/infra/libkookie/nixpkgs/pkgs/applications/misc/electrum/ltc.nix
new file mode 100644
index 000000000000..2c6fb39fa433
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/applications/misc/electrum/ltc.nix
@@ -0,0 +1,61 @@
+{ stdenv
+, fetchurl
+, python3Packages
+, wrapQtAppsHook
+}:
+
+python3Packages.buildPythonApplication rec {
+ pname = "electrum-ltc";
+ version = "3.3.8.1";
+
+ src = fetchurl {
+ url = "https://electrum-ltc.org/download/Electrum-LTC-${version}.tar.gz";
+ sha256 = "0kxcx1xf6h9z8x0k483d6ykpnmfr30n6z3r6lgqxvbl42pq75li7";
+ };
+
+ nativeBuildInputs = with python3Packages; [ pyqt5 wrapQtAppsHook ];
+
+ 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
+ '';
+
+ preFixup = ''
+ makeWrapperArgs+=("''${qtWrapperArgs[@]}")
+ '';
+
+ 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; [ ];
+ };
+}