2011-11-24 20:48:20 +01:00
|
|
|
{ fetchurl, stdenv, openssl, db4, boost, zlib, miniupnpc, qt4 }:
|
2011-03-27 08:44:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-03-24 21:37:01 +01:00
|
|
|
version = "0.8.1";
|
2011-03-27 08:44:34 +02:00
|
|
|
name = "bitcoin-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-06-28 18:03:56 +02:00
|
|
|
url = "mirror://sourceforge/bitcoin/${name}-linux.tar.gz";
|
2013-03-24 21:37:01 +01:00
|
|
|
sha256 = "161arfkzpya5anh6vh5i9ydvwqpia7bpqgz83p2kd97iklx04zvd";
|
2011-03-27 08:44:34 +02:00
|
|
|
};
|
|
|
|
|
2011-11-24 20:48:20 +01:00
|
|
|
buildInputs = [ openssl db4 boost zlib miniupnpc qt4 ];
|
2011-03-27 08:44:34 +02:00
|
|
|
|
2012-06-02 20:00:39 +02:00
|
|
|
configurePhase = ''
|
2011-07-10 03:12:57 +02:00
|
|
|
cd src
|
2012-06-02 20:00:39 +02:00
|
|
|
qmake
|
2011-03-27 08:44:34 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2011-11-24 20:48:20 +01:00
|
|
|
cp bitcoin-qt $out/bin
|
2011-03-27 08:44:34 +02:00
|
|
|
'';
|
|
|
|
|
2012-06-28 18:03:56 +02:00
|
|
|
meta = {
|
2011-03-27 08:44:34 +02:00
|
|
|
description = "Bitcoin is a peer-to-peer currency";
|
2012-06-28 18:03:56 +02:00
|
|
|
longDescription= ''
|
|
|
|
Bitcoin is a free open source peer-to-peer electronic cash system that is
|
|
|
|
completely decentralized, without the need for a central server or trusted
|
|
|
|
parties. Users hold the crypto keys to their own money and transact directly
|
|
|
|
with each other, with the help of a P2P network to check for double-spending.
|
2011-03-27 08:44:34 +02:00
|
|
|
'';
|
|
|
|
homepage = "http://www.bitcoin.org/";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
|
|
|
license = "MIT";
|
|
|
|
};
|
|
|
|
}
|