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";
|
2022-02-21 08:47:16 +00:00
|
|
|
version = "10.6.2";
|
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}";
|
2022-02-21 08:47:16 +00:00
|
|
|
hash = "sha256-+8bH7fKJ5uZRxKX/4nMkoZGFTxm2uJEXkb1wq5FrLWs=";
|
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;
|
|
|
|
};
|
|
|
|
}
|