Files
nixpkgs/pkgs/by-name/na/namecoind/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

79 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
python3,
boost,
libevent,
autoreconfHook,
db4,
miniupnpc,
sqlite,
pkg-config,
util-linux,
hexdump,
zeromq,
zlib,
darwin,
withWallet ? true,
}:
stdenv.mkDerivation rec {
pname = "namecoind";
version = "28.0";
src = fetchFromGitHub {
owner = "namecoin";
repo = "namecoin-core";
tag = "nc${version}";
hash = "sha256-r6rVgPrKz7nZ07oXw7KmVhGF4jVn6L+R9YHded+3E9k=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
]
++ lib.optionals stdenv.hostPlatform.isLinux [ util-linux ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ hexdump ]
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
darwin.autoSignDarwinBinariesHook
];
buildInputs = [
boost
libevent
db4
miniupnpc
zeromq
zlib
]
++ lib.optionals withWallet [ sqlite ]
# building with db48 (for legacy descriptor wallet support) is broken on Darwin
++ lib.optionals (withWallet && !stdenv.hostPlatform.isDarwin) [ db4 ];
enableParallelBuilding = true;
configureFlags = [
"--with-boost-libdir=${boost.out}/lib"
"--disable-bench"
"--disable-gui-tests"
]
++ lib.optionals (!withWallet) [
"--disable-wallet"
];
nativeCheckInputs = [ python3 ];
doCheck = true;
checkFlags = [ "LC_ALL=en_US.UTF-8" ];
meta = with lib; {
description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency";
homepage = "https://namecoin.org";
license = licenses.mit;
maintainers = [ ];
platforms = platforms.linux;
};
}