1{ lib, stdenv, fetchurl, curl, libxml2 }:
2
3stdenv.mkDerivation rec {
4 pname = "xmlrpc-c";
5 version = "1.51.07";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/xmlrpc-c/${pname}-${version}.tgz";
9 sha256 = "sha256-hNIK4z+SdYL4IdYcC5GUrvvx15JFkKE/qdpa4WmK3tk=";
10 };
11
12 buildInputs = [ curl libxml2 ];
13
14 configureFlags = [
15 "--enable-libxml2-backend"
16 ];
17
18 # Build and install the "xmlrpc" tool (like the Debian package)
19 postInstall = ''
20 (cd tools/xmlrpc && make && make install)
21 '';
22
23 hardeningDisable = [ "format" ];
24
25 meta = with lib; {
26 description = "A lightweight RPC library based on XML and HTTP";
27 homepage = "https://xmlrpc-c.sourceforge.net/";
28 # <xmlrpc-c>/doc/COPYING also lists "Expat license",
29 # "ABYSS Web Server License" and "Python 1.5.2 License"
30 license = licenses.bsd3;
31 platforms = platforms.unix;
32 maintainers = [ maintainers.bjornfor ];
33 };
34}