2011-11-24 19:48:20 +00:00
|
|
|
{ fetchurl, stdenv, openssl, db4, boost, zlib, miniupnpc, qt4 }:
|
2011-03-27 07:44:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-06-28 17:03:56 +01:00
|
|
|
version = "0.6.3";
|
2011-03-27 07:44:34 +01:00
|
|
|
name = "bitcoin-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-06-28 17:03:56 +01:00
|
|
|
url = "mirror://sourceforge/bitcoin/${name}-linux.tar.gz";
|
|
|
|
sha256 = "722d4209ff4a951a9eb5cae26a33ad62770fdcb5dfb5acf0b5c6a8f6f3a8a0ef";
|
2011-03-27 07:44:34 +01:00
|
|
|
};
|
|
|
|
|
2011-11-24 19:48:20 +00:00
|
|
|
buildInputs = [ openssl db4 boost zlib miniupnpc qt4 ];
|
2011-03-27 07:44:34 +01:00
|
|
|
|
2012-06-02 19:00:39 +01:00
|
|
|
configurePhase = ''
|
2011-07-10 02:12:57 +01:00
|
|
|
cd src
|
2012-06-02 19:00:39 +01:00
|
|
|
qmake
|
2011-03-27 07:44:34 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2011-11-24 19:48:20 +00:00
|
|
|
cp bitcoin-qt $out/bin
|
2011-03-27 07:44:34 +01:00
|
|
|
'';
|
|
|
|
|
2012-06-28 17:03:56 +01:00
|
|
|
meta = {
|
2011-03-27 07:44:34 +01:00
|
|
|
description = "Bitcoin is a peer-to-peer currency";
|
2012-06-28 17:03:56 +01: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 07:44:34 +01:00
|
|
|
'';
|
|
|
|
homepage = "http://www.bitcoin.org/";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
|
|
|
license = "MIT";
|
|
|
|
};
|
|
|
|
}
|