From c9b2f32c458c5099cd3a88cfbf516d1c4d0b7a8f Mon Sep 17 00:00:00 2001 From: Russell O'Connor Date: Thu, 24 Nov 2011 19:48:20 +0000 Subject: [PATCH] Updating bitcoin to version 0.5.0. svn path=/nixpkgs/trunk/; revision=30553 --- pkgs/applications/misc/bitcoin/default.nix | 30 ++++++++++----------- pkgs/tools/networking/miniupnpc/default.nix | 4 +-- pkgs/top-level/all-packages.nix | 4 +-- 3 files changed, 17 insertions(+), 21 deletions(-) diff --git a/pkgs/applications/misc/bitcoin/default.nix b/pkgs/applications/misc/bitcoin/default.nix index 9d9ddb056da..20a9bb99168 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 = { diff --git a/pkgs/tools/networking/miniupnpc/default.nix b/pkgs/tools/networking/miniupnpc/default.nix index 19ef811713a..1039cadb3ee 100644 --- a/pkgs/tools/networking/miniupnpc/default.nix +++ b/pkgs/tools/networking/miniupnpc/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl }: stdenv.mkDerivation rec { - name = "miniupnpc-1.5"; + name = "miniupnpc-1.6"; src = fetchurl { url = "http://miniupnp.free.fr/files/download.php?file=${name}.tar.gz"; - sha256 = "0mx950lfxcjpsfny8qcjx6phb74v4zw1rlj99xicd4icx5j0w3s4"; + sha256 = "151rh46axl44y7bbflb43pnj52gvlfnkxfgrn2jvai5gwrbbgmmv"; }; installFlags = "PREFIX=$(out) INSTALLPREFIX=$(out)"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 789edc93593..e0c77757b35 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6339,9 +6339,7 @@ let bitcoin = callPackage ../applications/misc/bitcoin { boost = boost144; - wxGTK = wxGTK290; - db4 = db47; - inherit (xlibs) libSM; + db4 = db48; }; bitlbee = callPackage ../applications/networking/instant-messengers/bitlbee {