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