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 {
|
2012-06-02 20:00:39 +02:00
|
|
|
version = "0.6.2";
|
2011-03-27 08:44:34 +02:00
|
|
|
name = "bitcoin-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2012-06-02 20:00:39 +02:00
|
|
|
url = "mirror://sourceforge/bitcoin/bitcoin-0.6.2-linux.tar.gz";
|
|
|
|
sha256 = "0yhgqz98hmmn6ljk23rd48jsjfvzdii27370vazhbgvjwj8giais";
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|