namecoin: legacy 0.3.80 -> core 0.13.0rc1

This updates namecoin from a legacy version from about 3 years ago
(https://github.com/namecoin/namecoin-legacy) to
the new namecoin-core.

(cherry picked from commit 8bd3664f373cb78a0526dc8a86e750f55b96420a)

authored by Silvan Mosberger and committed by lassulus 31f349db f87d4ac2

+38 -48
+2 -2
pkgs/applications/altcoins/default.nix
··· 35 memorycoin = callPackage ./memorycoin.nix { withGui = true; }; 36 memorycoind = callPackage ./memorycoin.nix { withGui = false; }; 37 38 - namecoin = callPackage ./namecoin.nix { inherit namecoind; }; 39 - namecoind = callPackage ./namecoind.nix { }; 40 41 ethabi = callPackage ./ethabi.nix { }; 42 ethrun = callPackage ./ethrun.nix { };
··· 35 memorycoin = callPackage ./memorycoin.nix { withGui = true; }; 36 memorycoind = callPackage ./memorycoin.nix { withGui = false; }; 37 38 + namecoin = callPackage ./namecoin.nix { withGui = true; }; 39 + namecoind = callPackage ./namecoin.nix { withGui = false; }; 40 41 ethabi = callPackage ./ethabi.nix { }; 42 ethrun = callPackage ./ethrun.nix { };
+36 -11
pkgs/applications/altcoins/namecoin.nix
··· 1 - { stdenv, db4, boost, openssl, qt4, qmake4Hook, miniupnpc, unzip, namecoind }: 2 3 with stdenv.lib; 4 stdenv.mkDerivation rec { 5 6 - name = "namecoin-${version}"; 7 - version = namecoind.version; 8 - src = namecoind.src; 9 10 - buildInputs = [ db4 boost openssl unzip qt4 qmake4Hook miniupnpc ]; 11 12 - qmakeFlags = [ "USE_UPNP=-" ]; 13 14 - installPhase = '' 15 - mkdir -p $out/bin 16 - cp namecoin-qt $out/bin 17 - ''; 18 19 - meta = namecoind.meta; 20 }
··· 1 + { stdenv, lib, fetchFromGitHub, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkgconfig, qt4, protobuf, libqrencode 2 + , withGui }: 3 4 with stdenv.lib; 5 stdenv.mkDerivation rec { 6 + version = "nc0.13.0rc1"; 7 + name = "namecoin" + toString (optional (!withGui) "d") + "-" + version; 8 9 + src = fetchFromGitHub { 10 + owner = "namecoin"; 11 + repo = "namecoin-core"; 12 + rev = version; 13 + sha256 = "17zz0rm3js285w2assxp8blfx830rs0ambcsaqqfli9mnaik3m39"; 14 + }; 15 16 + nativeBuildInputs = [ 17 + autoreconfHook 18 + pkgconfig 19 + ]; 20 21 + buildInputs = [ 22 + openssl 23 + boost 24 + libevent 25 + db4 26 + miniupnpc 27 + eject 28 + ] ++ optionals withGui [ 29 + qt4 30 + protobuf 31 + libqrencode 32 + ]; 33 34 + configureFlags = [ 35 + "--with-boost-libdir=${boost.out}/lib" 36 + ]; 37 38 + meta = { 39 + description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency"; 40 + homepage = https://namecoin.org; 41 + license = licenses.mit; 42 + maintainers = with maintainers; [ doublec AndersonTorres infinisil ]; 43 + platforms = platforms.linux; 44 + }; 45 }
-35
pkgs/applications/altcoins/namecoind.nix
··· 1 - { stdenv, fetchzip, db4, boost, openssl, miniupnpc, unzip }: 2 - 3 - with stdenv.lib; 4 - stdenv.mkDerivation rec { 5 - version = "0.3.80"; 6 - name = "namecoind-${version}"; 7 - 8 - src = fetchzip { 9 - url = "https://github.com/namecoin/namecoin/archive/nc${version}.tar.gz"; 10 - sha256 = "0mbkhj7y3f4vbqp5q3zk27bzqlk2kq71rcgivvj06w29fzd64mw6"; 11 - }; 12 - 13 - buildInputs = [ db4 boost openssl unzip miniupnpc ]; 14 - 15 - patchPhase = '' 16 - sed -e 's/-Wl,-Bstatic//g' -e 's/-l gthread-2.0//g' -e 's/-l z//g' -i src/Makefile 17 - ''; 18 - 19 - buildPhase = '' 20 - make -C src INCLUDEPATHS= LIBPATHS= 21 - ''; 22 - 23 - installPhase = '' 24 - mkdir -p $out/bin 25 - cp src/namecoind $out/bin 26 - ''; 27 - 28 - meta = { 29 - description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency"; 30 - homepage = http://namecoin.info; 31 - license = licenses.mit; 32 - maintainers = with maintainers; [ doublec AndersonTorres ]; 33 - platforms = platforms.linux; 34 - }; 35 - }
···