2015-12-07 10:38:38 +00:00
|
|
|
{ stdenv, fetchzip, db4, boost, openssl, miniupnpc, unzip }:
|
2014-11-30 13:13:47 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
2015-01-02 11:58:25 +00:00
|
|
|
version = "0.3.80";
|
2014-11-30 13:13:47 +00:00
|
|
|
name = "namecoind-${version}";
|
|
|
|
|
2015-12-07 10:38:38 +00:00
|
|
|
src = fetchzip {
|
2014-11-30 13:13:47 +00:00
|
|
|
url = "https://github.com/namecoin/namecoin/archive/nc${version}.tar.gz";
|
2015-12-07 10:38:38 +00:00
|
|
|
sha256 = "0mbkhj7y3f4vbqp5q3zk27bzqlk2kq71rcgivvj06w29fzd64mw6";
|
2014-11-30 13:13:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ db4 boost openssl unzip miniupnpc ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's/-Wl,-Bstatic//g' -e 's/-l gthread-2.0//g' -e 's/-l z//g' -i src/Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make -C src INCLUDEPATHS= LIBPATHS=
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp src/namecoind $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency";
|
|
|
|
homepage = http://namecoin.info;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doublec AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|