biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / blockchains / namecoin / default.nix
blob42f4be7a227bdfe2a76c967efb0847291a0d7440
1 { lib, stdenv, fetchFromGitHub, fetchpatch2, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkg-config, hexdump }:
3 stdenv.mkDerivation rec {
4   pname = "namecoind";
5   version = "25.0";
7   src = fetchFromGitHub {
8     owner = "namecoin";
9     repo = "namecoin-core";
10     rev = "nc${version}";
11     sha256 = "sha256-2KMK5Vb8osuaKbzI1aaPSYg+te+v9CEcGUkrVI6Fk54=";
12   };
14   patches = [
15     # upnp: add compatibility for miniupnpc 2.2.8
16     (fetchpatch2 {
17       url = "https://github.com/namecoin/namecoin-core/commit/8acdf66540834b9f9cf28f16d389e8b6a48516d5.patch?full_index=1";
18       hash = "sha256-oDvHUvwAEp0LJCf6QBESn38Bu359TcPpLhvuLX3sm6M=";
19     })
20   ];
22   nativeBuildInputs = [
23     autoreconfHook
24     pkg-config
25     hexdump
26   ];
28   buildInputs = [
29     openssl
30     boost
31     libevent
32     db4
33     miniupnpc
34     eject
35   ];
37   enableParallelBuilding = true;
39   configureFlags = [
40     "--with-boost-libdir=${boost.out}/lib"
41   ];
43   meta = with lib; {
44     description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency";
45     homepage = "https://namecoin.org";
46     license = licenses.mit;
47     maintainers = [ ];
48     platforms = platforms.linux;
49   };