2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl, curl, libxml2 }:
|
2012-02-23 12:27:47 +01:00
|
|
|
|
2013-08-26 22:42:46 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2021-03-10 07:14:01 +01:00
|
|
|
name = "xmlrpc-c-1.51.07";
|
2013-08-26 22:42:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/xmlrpc-c/${name}.tgz";
|
2021-03-10 07:14:01 +01:00
|
|
|
sha256 = "sha256-hNIK4z+SdYL4IdYcC5GUrvvx15JFkKE/qdpa4WmK3tk=";
|
2013-08-26 22:42:46 +02:00
|
|
|
};
|
2012-02-23 12:27:47 +01:00
|
|
|
|
2015-04-10 02:55:02 +02:00
|
|
|
buildInputs = [ curl libxml2 ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-libxml2-backend"
|
|
|
|
];
|
2012-02-23 12:27:47 +01:00
|
|
|
|
2013-08-26 22:42:46 +02:00
|
|
|
# Build and install the "xmlrpc" tool (like the Debian package)
|
|
|
|
postInstall = ''
|
|
|
|
(cd tools/xmlrpc && make && make install)
|
|
|
|
'';
|
2012-02-23 12:27:47 +01:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-20 22:55:18 +01:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2013-08-26 22:42:46 +02:00
|
|
|
description = "A lightweight RPC library based on XML and HTTP";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://xmlrpc-c.sourceforge.net/";
|
2013-08-26 22:42:46 +02:00
|
|
|
# <xmlrpc-c>/doc/COPYING also lists "Expat license",
|
|
|
|
# "ABYSS Web Server License" and "Python 1.5.2 License"
|
|
|
|
license = licenses.bsd3;
|
2018-04-04 03:30:51 +02:00
|
|
|
platforms = platforms.unix;
|
2013-08-26 22:42:46 +02:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2012-02-23 12:27:47 +01:00
|
|
|
};
|
|
|
|
}
|