2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libjpeg, zlib, perl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qpdf";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "10.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qpdf";
|
|
|
|
repo = "qpdf";
|
|
|
|
rev = "release-qpdf-${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-abPT1u/ceBrE1U+omOHiU3UjLrmcpdSpe1vgar0wUGk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
|
|
|
|
buildInputs = [ zlib libjpeg ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
patchShebangs qtest/bin/qtest-driver
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://qpdf.sourceforge.net/";
|
|
|
|
description = "A C++ library and set of programs that inspect and manipulate the structure of PDF files";
|
|
|
|
license = licenses.asl20; # as of 7.0.0, people may stay at artistic2
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|