1{ stdenv, fetchurl, xalanc, xercesc, openssl, pkgconfig }:
2
3stdenv.mkDerivation rec {
4 name = "xml-security-c-${version}";
5 version = "1.7.3";
6
7 src = fetchurl {
8 url = "http://www.apache.org/dist/santuario/c-library/${name}.tar.gz";
9 sha256 = "e5226e7319d44f6fd9147a13fb853f5c711b9e75bf60ec273a0ef8a190592583";
10 };
11
12 patches = [ ./cxx11.patch ];
13
14 postPatch = ''
15 mkdir -p xsec/yes/lib
16 sed -i -e 's/-O2 -DNDEBUG/-DNDEBUG/g' configure
17 '';
18
19 configureFlags = [
20 "--with-openssl"
21 "--with-xerces"
22 "--with-xalan"
23 "--disable-static"
24 ];
25
26 nativeBuildInputs = [ pkgconfig ];
27 buildInputs = [ xalanc xercesc openssl ];
28
29 meta = {
30 homepage = http://santuario.apache.org/;
31 description = "C++ Implementation of W3C security standards for XML";
32 license = stdenv.lib.licenses.gpl2;
33 platforms = stdenv.lib.platforms.unix;
34 maintainers = [ stdenv.lib.maintainers.jagajaga ];
35 };
36}