diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/xml-security-c')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/xml-security-c/cxx11.patch | 11 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/xml-security-c/default.nix | 36 |
2 files changed, 47 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/xml-security-c/cxx11.patch b/nixpkgs/pkgs/development/libraries/xml-security-c/cxx11.patch new file mode 100644 index 000000000000..bc87d4c1411e --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/xml-security-c/cxx11.patch @@ -0,0 +1,11 @@ +--- xml-security-c-1.6.1/xsec/tools/checksig/InteropResolver.cpp.orig 2016-02-02 23:57:26.204655144 +0000 ++++ xml-security-c-1.6.1/xsec/tools/checksig/InteropResolver.cpp 2016-02-02 23:57:35.796692305 +0000 +@@ -645,7 +645,7 @@ + + } + +- return false; ++ return NULL; + + } + diff --git a/nixpkgs/pkgs/development/libraries/xml-security-c/default.nix b/nixpkgs/pkgs/development/libraries/xml-security-c/default.nix new file mode 100644 index 000000000000..fec4bbe8efe2 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/xml-security-c/default.nix @@ -0,0 +1,36 @@ +{ 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"; + sha256 = "e5226e7319d44f6fd9147a13fb853f5c711b9e75bf60ec273a0ef8a190592583"; + }; + + patches = [ ./cxx11.patch ]; + + postPatch = '' + mkdir -p xsec/yes/lib + sed -i -e 's/-O2 -DNDEBUG/-DNDEBUG/g' configure + ''; + + configureFlags = [ + "--with-openssl" + "--with-xerces" + "--with-xalan" + "--disable-static" + ]; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ xalanc xercesc openssl ]; + + 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; + maintainers = [ stdenv.lib.maintainers.jagajaga ]; + }; +} |