nixpkgs/pkgs/development/libraries/xmlrpc-c/default.nix

34 lines
886 B
Nix
Raw Normal View History

2015-04-10 01:55:02 +01:00
{ stdenv, fetchurl, curl, libxml2 }:
stdenv.mkDerivation rec {
name = "xmlrpc-c-1.39.12";
src = fetchurl {
url = "mirror://sourceforge/xmlrpc-c/${name}.tgz";
sha256 = "026fh7w7y3q9pvxd09i5d4hq3l6gd81n9k19yq4zwbc398kg6c6q";
};
2015-04-10 01:55:02 +01: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)
'';
hardeningDisable = [ "format" ];
2016-02-20 21:55:18 +00: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 ];
};
}