diff options
author | Russell O'Connor <roconnor@theorem.ca> | 2011-11-24 19:48:20 +0000 |
---|---|---|
committer | Russell O'Connor <roconnor@theorem.ca> | 2011-11-24 19:48:20 +0000 |
commit | c9b2f32c458c5099cd3a88cfbf516d1c4d0b7a8f (patch) | |
tree | e792dc2b4017ca6a331a9df1e6bb3c5008fb63d7 /pkgs/applications/misc | |
parent | 845f2a8658af89c96c66a5989cf383a09ba8c56e (diff) |
Updating bitcoin to version 0.5.0.
svn path=/nixpkgs/trunk/; revision=30553
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/bitcoin/default.nix | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/pkgs/applications/misc/bitcoin/default.nix b/pkgs/applications/misc/bitcoin/default.nix index 9d9ddb056daa8..20a9bb9916885 100644 --- a/pkgs/applications/misc/bitcoin/default.nix +++ b/pkgs/applications/misc/bitcoin/default.nix @@ -1,32 +1,30 @@ -{ fetchurl, stdenv, openssl, db4, boost, zlib, glib, libSM, gtk, wxGTK, miniupnpc }: +{ fetchurl, stdenv, openssl, db4, boost, zlib, miniupnpc, qt4 }: stdenv.mkDerivation rec { - version = "0.3.24"; + version = "0.5.0"; name = "bitcoin-${version}"; src = fetchurl { - url = "mirror://sourceforge/project/bitcoin/Bitcoin/${name}/${name}-src.tar.gz"; - sha256 = "18n8i37c478b275m2x82411i1fsw8l34qm1k65ynnw38fpaj4h3r"; + url = " https://github.com/bitcoin/bitcoin/tarball/v${version}"; + sha256 = "146q0ijvdmk9iidmavzkpdgflnfi86ahqkwdvxpf5gmfqdd53yqx"; }; - buildInputs = [ openssl db4 boost zlib glib libSM gtk wxGTK miniupnpc ]; + buildInputs = [ openssl db4 boost zlib miniupnpc qt4 ]; - preConfigure = '' + unpackCmd = "tar xvf $curSrc"; + + buildPhase = '' + qmake + make cd src - substituteInPlace makefile.unix \ - --replace "-Wl,-Bstatic" "" \ - --replace "-Wl,-Bdynamic" "" \ - --replace "DEBUGFLAGS=-g -D__WXDEBUG__" "DEBUGFLAGS=" \ + make -f makefile.unix + cd .. ''; - makefile = "makefile.unix"; - - buildFlags = "bitcoin bitcoind"; - installPhase = '' ensureDir $out/bin - cp bitcoin $out/bin - cp bitcoind $out/bin + cp bitcoin-qt $out/bin + cp src/bitcoind $out/bin ''; meta = { |