mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
bitcoin: Update from 0.8.6 -> 0.9.1
This commit is contained in:
parent
fb762679e1
commit
09f0d57842
@ -1,26 +1,39 @@
|
|||||||
{ fetchurl, stdenv, openssl, db, boost, zlib, miniupnpc, qt4 }:
|
{ fetchurl, stdenv, openssl, db48, boost, zlib, miniupnpc, qt4, utillinux
|
||||||
|
, pkgconfig, protobuf, qrencode }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.8.6";
|
version = "0.9.1";
|
||||||
name = "bitcoin-${version}";
|
name = "bitcoin-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/bitcoin/${name}-linux.tar.gz";
|
url = "https://bitcoin.org/bin/${version}/${name}-linux.tar.gz";
|
||||||
sha256 = "036xx06gyrfh65rpdapff3viz1f38vzkj7lnhil6fc0s7pjmsjbk";
|
sha256 = "3fabc1c629007b465a278525883663d41a2ba62699f2773536a8bf59ca210425";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ openssl db boost zlib miniupnpc qt4 ];
|
# hexdump from utillinux is required for tests
|
||||||
|
buildInputs = [
|
||||||
|
openssl db48 boost zlib miniupnpc qt4 utillinux pkgconfig protobuf qrencode
|
||||||
|
];
|
||||||
|
|
||||||
configurePhase = ''
|
unpackPhase = ''
|
||||||
cd src
|
mkdir tmp-extract && (cd tmp-extract && tar xf $src)
|
||||||
qmake
|
tar xf tmp-extract/bitcoin*/src/bitcoin*.tar*
|
||||||
|
cd bitcoin*
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
configureFlags = [
|
||||||
mkdir -p $out/bin
|
"--with-boost=${boost}"
|
||||||
cp bitcoin-qt $out/bin
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
# At least one test requires writing in $HOME
|
||||||
|
HOME=$TMPDIR
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Bitcoin is a peer-to-peer currency";
|
description = "Bitcoin is a peer-to-peer currency";
|
||||||
longDescription= ''
|
longDescription= ''
|
||||||
|
Loading…
Reference in New Issue
Block a user