summary refs log tree commit diff
path: root/pkgs/applications/misc/electrum/default.nix
blob: 97ffd02e7514554be6cd15a55600052f96a5e9d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, fetchurl, buildPythonPackage, slowaes, ecdsa, pyqt4 }:

buildPythonPackage rec {
  namePrefix = "";
  name = "electrum-${version}";
  version = "1.9.8";

  src = fetchurl {
    url = "https://download.electrum.org/Electrum-${version}.tar.gz";
    sha256 = "8fc144a32013e4a747fea27fff981762a6b9e14cde9ffb405c4c721975d846ff";
  };

  buildInputs = [ slowaes ecdsa ];

  propagatedBuildInputs = [
    slowaes
    ecdsa
    pyqt4
  ];

  postPatch = ''
    mkdir -p $out/share
    sed -i 's@usr_share = .*@usr_share = os.getenv("out")+"/share"@' setup.py
  '';

  meta = {
    description = "Bitcoin thin-wallet";
    long-description = "Electrum is an easy to use Bitcoin client. It protects you from losing coins in a backup mistake or computer failure, because your wallet can be recovered from a secret phrase that you can write on paper or learn by heart. There is no waiting time when you start the client, because it does not download the Bitcoin blockchain.";
    homepage = "https://electrum.org";
    license = stdenv.lib.licenses.gpl3;
    maintainers = [ "emery@vfemail.net" ];
  };
}