lol
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 buildInputs = [ xalanc xercesc openssl pkgconfig ];
27
28 meta = {
29 homepage = http://santuario.apache.org/;
30 description = "C++ Implementation of W3C security standards for XML";
31 license = stdenv.lib.licenses.gpl2;
32 platforms = stdenv.lib.platforms.unix;
33 maintainers = [ stdenv.lib.maintainers.jagajaga ];
34 };
35}