2014-01-31 21:05:37 +01:00
|
|
|
{ fetchurl, stdenv, openssl, db, boost, zlib, miniupnpc, qt4 }:
|
2011-03-27 08:44:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-18 13:28:10 +01:00
|
|
|
version = "0.8.6";
|
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-12-18 13:28:10 +01:00
|
|
|
sha256 = "036xx06gyrfh65rpdapff3viz1f38vzkj7lnhil6fc0s7pjmsjbk";
|
2011-03-27 08:44:34 +02:00
|
|
|
};
|
|
|
|
|
2014-01-31 21:05:37 +01:00
|
|
|
buildInputs = [ openssl db 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";
|
|
|
|
};
|
|
|
|
}
|