2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, curl, libxml2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "xmlrpc-c";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.59.03";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "mirror://sourceforge/xmlrpc-c/${pname}-${version}.tgz";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-vbcdtCqwvlFZFVWIXRFoKwRMEDTUoylkAb+SHsCyM/4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ curl libxml2 ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-libxml2-backend"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Build and install the "xmlrpc" tool (like the Debian package)
|
|
|
|
postInstall = ''
|
|
|
|
(cd tools/xmlrpc && make && make install)
|
|
|
|
'';
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
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";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Lightweight RPC library based on XML and HTTP";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://xmlrpc-c.sourceforge.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
# <xmlrpc-c>/doc/COPYING also lists "Expat license",
|
|
|
|
# "ABYSS Web Server License" and "Python 1.5.2 License"
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|