2011-05-17 13:34:18 +02:00
|
|
|
{ fetchurl, stdenv, openssl, db4, boost, zlib, glib, libSM, gtk, wxGTK, miniupnpc }:
|
2011-03-27 08:44:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-06-06 11:22:04 +02:00
|
|
|
version = "0.3.22";
|
2011-03-27 08:44:34 +02:00
|
|
|
name = "bitcoin-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2011-05-17 13:34:18 +02:00
|
|
|
url = "mirror://sourceforge/project/bitcoin/Bitcoin/${name}/${name}-linux.tar.gz";
|
2011-06-06 11:22:04 +02:00
|
|
|
sha256 = "1nyji3xjyvw91snnbxk71dih3yf292d7mvkakw0nkqplbap14xjb";
|
2011-03-27 08:44:34 +02:00
|
|
|
};
|
|
|
|
|
2011-05-17 13:34:18 +02:00
|
|
|
buildInputs = [ openssl db4 boost zlib glib libSM gtk wxGTK miniupnpc ];
|
2011-03-27 08:44:34 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
2011-06-06 11:22:04 +02:00
|
|
|
cd src/src
|
2011-03-27 08:44:34 +02:00
|
|
|
substituteInPlace makefile.unix \
|
|
|
|
--replace "-Wl,-Bstatic" "" \
|
|
|
|
--replace "-Wl,-Bdynamic" "" \
|
|
|
|
--replace "DEBUGFLAGS=-g -D__WXDEBUG__" "DEBUGFLAGS=" \
|
|
|
|
'';
|
|
|
|
|
|
|
|
makefile = "makefile.unix";
|
|
|
|
|
2011-04-20 15:52:02 +02:00
|
|
|
preBuild = "make -f ${makefile} clean";
|
|
|
|
|
2011-03-27 08:44:34 +02:00
|
|
|
buildFlags = "bitcoin bitcoind";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out/bin
|
|
|
|
cp bitcoin $out/bin
|
|
|
|
cp bitcoind $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|