git.iko.soy/typeable/nixpkgs
on master help sign in
xml-security-c: fix gcc6 build
commit4596835502f60dfc250494728d0995d6d4b9d4bb authorJörg Thalheim <joerg@thalheim.io> dateSat 26 Aug 2017, 09:23 (9 years ago) parent48f337a
2 files changed+20−8
pkgs/development/libraries/xml-security-c/cxx11.patch+11 pkgs/development/libraries/xml-security-c/default.nix+9−8
pkgs/development/libraries/xml-security-c/cxx11.patchnew file+11
@@ -0,0 +1,11 @@
1+--- xml-security-c-1.6.1/xsec/tools/checksig/InteropResolver.cpp.orig 2016-02-02 23:57:26.204655144 +0000
2++++ xml-security-c-1.6.1/xsec/tools/checksig/InteropResolver.cpp 2016-02-02 23:57:35.796692305 +0000
3+@@ -645,7 +645,7 @@
4+
5+ }
6+
7+- return false;
8++ return NULL;
9+
10+ }
11+
pkgs/development/libraries/xml-security-c/default.nix+9−8
@@ -9,18 +9,19 @@ stdenv.mkDerivation rec {
99 sha256 = "e5226e7319d44f6fd9147a13fb853f5c711b9e75bf60ec273a0ef8a190592583";
1010 };
1111
12− patchPhase = ''
12+ patches = [ ./cxx11.patch ];
13+
14+ postPatch = ''
1315 mkdir -p xsec/yes/lib
1416 sed -i -e 's/-O2 -DNDEBUG/-DNDEBUG/g' configure
1517 '';
1618
17− configurePhase = ''
18− ./configure --prefix=$out \
19− --with-openssl \
20− --with-xerces \
21− --with-xalan \
22− --disable-static
23− '';
19+ configureFlags = [
20+ "--with-openssl"
21+ "--with-xerces"
22+ "--with-xalan"
23+ "--disable-static"
24+ ];
2425
2526 buildInputs = [ xalanc xercesc openssl pkgconfig ];
2627