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 {
|
2011-11-24 20:48:20 +01:00
|
|
|
version = "0.5.0";
|
2011-03-27 08:44:34 +02:00
|
|
|
name = "bitcoin-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2011-11-24 20:48:20 +01:00
|
|
|
url = " https://github.com/bitcoin/bitcoin/tarball/v${version}";
|
2011-12-10 19:01:51 +01:00
|
|
|
sha256 = "1i9wnbjf9yrs9rq5jnh9pk1x5j982qh3xpjm05z8dgd3nympgyy8";
|
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
|
|
|
|
2011-11-24 20:48:20 +01:00
|
|
|
unpackCmd = "tar xvf $curSrc";
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
qmake
|
|
|
|
make
|
2011-07-10 03:12:57 +02:00
|
|
|
cd src
|
2011-11-24 20:48:20 +01:00
|
|
|
make -f makefile.unix
|
|
|
|
cd ..
|
2011-03-27 08:44:34 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out/bin
|
2011-11-24 20:48:20 +01:00
|
|
|
cp bitcoin-qt $out/bin
|
|
|
|
cp src/bitcoind $out/bin
|
2011-03-27 08:44:34 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Bitcoin is a peer-to-peer currency";
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = "http://www.bitcoin.org/";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
|
|
|
license = "MIT";
|
|
|
|
};
|
|
|
|
}
|