about summary refs log tree commit diff
path: root/pkgs/development/libraries/xml-security-c/default.nix
blob: 1932acbd7eded9adfe9ce87720476720634c137a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ stdenv, fetchurl, xalanc, xercesc, openssl, pkgconfig }:

stdenv.mkDerivation rec {
  name = "xml-security-c-${version}";
  version = "1.7.3";

  src = fetchurl {
    url = "http://www.apache.org/dist/santuario/c-library/${name}.tar.gz";
    sha256 = "e5226e7319d44f6fd9147a13fb853f5c711b9e75bf60ec273a0ef8a190592583";
  };

  patchPhase = ''
    mkdir -p xsec/yes/lib
    sed -i -e 's/-O2 -DNDEBUG/-DNDEBUG/g' configure
  '';

  configurePhase = ''
    ./configure --prefix=$out \
                --with-openssl \
                --with-xerces \
                --with-xalan \
                --disable-static
  '';

  buildInputs = [ xalanc xercesc openssl pkgconfig ];

  meta = {
    homepage = http://santuario.apache.org/;
    description = "C++ Implementation of W3C security standards for XML";
    license = stdenv.lib.licenses.gpl2;
    platforms = stdenv.lib.platforms.linux;
    maintainers = [ stdenv.lib.maintainers.jagajaga ];
  };
}