2015-04-10 03:55:02 +03:00
|
|
|
{ stdenv, fetchurl, curl, libxml2 }:
|
2012-02-23 15:27:47 +04:00
|
|
|
|
2013-08-27 00:42:46 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2015-04-10 03:55:02 +03:00
|
|
|
name = "xmlrpc-c-1.33.17";
|
2013-08-27 00:42:46 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/xmlrpc-c/${name}.tgz";
|
2015-04-10 03:55:02 +03:00
|
|
|
sha256 = "0makq1zpfqnrj6xx1xc7wi4mh115ri9p4yz2rbvjhj0il4y8l4ah";
|
2013-08-27 00:42:46 +04:00
|
|
|
};
|
2012-02-23 15:27:47 +04:00
|
|
|
|
2015-04-10 03:55:02 +03:00
|
|
|
buildInputs = [ curl libxml2 ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-libxml2-backend"
|
|
|
|
];
|
2012-02-23 15:27:47 +04:00
|
|
|
|
2013-08-27 00:42:46 +04:00
|
|
|
# Build and install the "xmlrpc" tool (like the Debian package)
|
|
|
|
postInstall = ''
|
|
|
|
(cd tools/xmlrpc && make && make install)
|
|
|
|
'';
|
2012-02-23 15:27:47 +04:00
|
|
|
|
2013-08-27 00:42:46 +04:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A lightweight RPC library based on XML and HTTP";
|
|
|
|
homepage = http://xmlrpc-c.sourceforge.net/;
|
|
|
|
# <xmlrpc-c>/doc/COPYING also lists "Expat license",
|
|
|
|
# "ABYSS Web Server License" and "Python 1.5.2 License"
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2012-02-23 15:27:47 +04:00
|
|
|
};
|
|
|
|
}
|