pdf2xml: disable format hardening
This commit is contained in:
parent
4f0608abdb
commit
1bbb2f0cf3
@ -2,20 +2,22 @@
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pdf2xml";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = http://tarballs.nixos.org/pdf2xml.tar.gz;
|
||||
sha256 = "04rl7ppxqgnvxvvws669cxp478lnrdmiqj0g3m4p69bawfjc4z3w";
|
||||
};
|
||||
sourceRoot = "pdf2xml/pdf2xml";
|
||||
|
||||
|
||||
buildInputs = [libxml2 libxpdf];
|
||||
|
||||
patches = [./pdf2xml.patch];
|
||||
|
||||
hardening_format = false;
|
||||
|
||||
preBuild = ''
|
||||
cp Makefile.linux Makefile
|
||||
|
||||
|
||||
sed -i 's|/usr/include/libxml2|${libxml2}/include/libxml2|' Makefile
|
||||
sed -i 's|-lxml2|-lxml2 -L${libxml2}/lib|' Makefile
|
||||
sed -i 's|XPDF = xpdf_3.01|XPDF = ${libxpdf}/lib|' Makefile
|
||||
@ -24,7 +26,7 @@ stdenv.mkDerivation {
|
||||
|
||||
buildFlags+=" CXX=$CXX"
|
||||
'';
|
||||
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp exe/* $out/bin
|
||||
|
Loading…
Reference in New Issue
Block a user