Files
nixpkgs/pkgs/by-name/xm/xmlrpc_c/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

55 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
curl,
libxml2,
}:
stdenv.mkDerivation rec {
pname = "xmlrpc-c";
version = "1.60.05";
src = fetchurl {
url = "mirror://sourceforge/xmlrpc-c/${pname}-${version}.tgz";
hash = "sha256-Z9hgBiRZ6ieEwHtNeRMxnZU5+nKfU0N46OQciRjyrfY=";
};
postPatch = ''
rm -rf lib/expat
'';
nativeBuildInputs = [
pkg-config
];
buildInputs = [
curl
libxml2
];
configureFlags = [
"--enable-libxml2-backend"
];
# Build and install the "xmlrpc" tool (like the Debian package)
postInstall = ''
(cd tools/xmlrpc && make && make install)
'';
enableParallelBuilding = true;
# ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration";
meta = with lib; {
description = "Lightweight RPC library based on XML and HTTP";
homepage = "https://xmlrpc-c.sourceforge.net/";
# <xmlrpc-c>/doc/COPYING also lists "ABYSS Web Server License" and "Python 1.5.2 License"
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = [ maintainers.bjornfor ];
};
}