nixpkgs/pkgs/applications/misc/bitcoin/default.nix
Russell O'Connor c9b2f32c45 Updating bitcoin to version 0.5.0.
svn path=/nixpkgs/trunk/; revision=30553
2011-11-24 19:48:20 +00:00

43 lines
1.1 KiB
Nix

{ fetchurl, stdenv, openssl, db4, boost, zlib, miniupnpc, qt4 }:
stdenv.mkDerivation rec {
version = "0.5.0";
name = "bitcoin-${version}";
src = fetchurl {
url = " https://github.com/bitcoin/bitcoin/tarball/v${version}";
sha256 = "146q0ijvdmk9iidmavzkpdgflnfi86ahqkwdvxpf5gmfqdd53yqx";
};
buildInputs = [ openssl db4 boost zlib miniupnpc qt4 ];
unpackCmd = "tar xvf $curSrc";
buildPhase = ''
qmake
make
cd src
make -f makefile.unix
cd ..
'';
installPhase = ''
ensureDir $out/bin
cp bitcoin-qt $out/bin
cp src/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";
};
}