1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/xml-security-c/default.nix

37 lines
929 B
Nix
Raw Normal View History

2016-04-26 17:13:09 +01:00
{ stdenv, fetchurl, xalanc, xercesc, openssl, pkgconfig }:
stdenv.mkDerivation rec {
name = "xml-security-c-${version}";
version = "1.7.3";
src = fetchurl {
url = "https://www.apache.org/dist/santuario/c-library/${name}.tar.gz";
2016-04-26 17:13:09 +01:00
sha256 = "e5226e7319d44f6fd9147a13fb853f5c711b9e75bf60ec273a0ef8a190592583";
};
2017-08-26 09:23:16 +01:00
patches = [ ./cxx11.patch ];
postPatch = ''
2016-04-26 17:13:09 +01:00
mkdir -p xsec/yes/lib
sed -i -e 's/-O2 -DNDEBUG/-DNDEBUG/g' configure
'';
2017-08-26 09:23:16 +01:00
configureFlags = [
"--with-openssl"
"--with-xerces"
"--with-xalan"
"--disable-static"
];
2016-04-26 17:13:09 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ xalanc xercesc openssl ];
2016-04-26 17:13:09 +01:00
meta = {
homepage = http://santuario.apache.org/;
description = "C++ Implementation of W3C security standards for XML";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.unix;
2016-04-26 17:13:09 +01:00
maintainers = [ stdenv.lib.maintainers.jagajaga ];
};
}