uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
41
pkgs/development/libraries/pdf2xml/default.nix
Normal file
41
pkgs/development/libraries/pdf2xml/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{lib, stdenv, fetchurl, libxpdf, libxml2}:
|
||||
|
||||
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];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
preBuild = ''
|
||||
cp Makefile.linux Makefile
|
||||
|
||||
sed -i 's|/usr/include/libxml2|${libxml2.dev}/include/libxml2|' Makefile
|
||||
sed -i 's|-lxml2|-lxml2 -L${libxml2.out}/lib|' Makefile
|
||||
sed -i 's|XPDF = xpdf_3.01|XPDF = ${libxpdf}/lib|' Makefile
|
||||
|
||||
mkdir exe
|
||||
|
||||
buildFlags+=" CXX=$CXX"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp exe/* $out/bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "PDF to XML converter";
|
||||
homepage = "https://sourceforge.net/projects/pdf2xml/";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue