qpdf: 10.6.3 -> 11.1.0

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
main
Florian Brandes 2 years ago
parent 9e4c8aec09
commit 0132cbf58d
  1. 19
      pkgs/development/libraries/qpdf/default.nix

@ -1,29 +1,28 @@
{ lib, stdenv, fetchFromGitHub, libjpeg, zlib, perl }:
{ lib, stdenv, fetchFromGitHub, libjpeg, zlib, cmake, perl }:
stdenv.mkDerivation rec {
pname = "qpdf";
version = "10.6.3";
version = "11.1.0";
src = fetchFromGitHub {
owner = "qpdf";
repo = "qpdf";
rev = "release-qpdf-${version}";
hash = "sha256-SiZA8T7N1SWlbCFosSqFosLDV/3Q7+ywvgq1iB4umdg=";
rev = "v${version}";
hash = "sha256-T06BLtDZN6ulJ9Po3LN1RlI6q8ddAfo95RAhyfrn+qg=";
};
nativeBuildInputs = [ perl ];
nativeBuildInputs = [ cmake perl ];
buildInputs = [ zlib libjpeg ];
configureFlags = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
"--with-random=/dev/urandom";
preCheck = ''
preConfigure = ''
patchShebangs qtest/bin/qtest-driver
patchShebangs run-qtest
# qtest needs to know where the source code is
substituteInPlace CMakeLists.txt --replace "run-qtest" "run-qtest --top $src --code $src --bin $out"
'';
doCheck = true;
enableParallelBuilding = true;
meta = with lib; {
homepage = "http://qpdf.sourceforge.net/";

Loading…
Cancel
Save