Merge pull request #97752 from doronbehar/pkg/qpdf

qpdf: 9.1.1 -> 10.0.1
This commit is contained in:
Doron Behar 2020-09-13 19:16:19 +03:00 committed by GitHub
commit bdbe60a883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,24 +1,20 @@
{ stdenv, fetchurl, libjpeg, zlib, perl }:
{ stdenv, fetchFromGitHub, libjpeg, zlib, perl }:
let version = "9.1.1";
in
stdenv.mkDerivation rec {
pname = "qpdf";
inherit version;
version = "10.0.1";
src = fetchurl {
url = "mirror://sourceforge/qpdf/qpdf/${version}/${pname}-${version}.tar.gz";
sha256 = "0dj27wb9xg6pg95phbflfvy9rwxn1gh3kc4n175g0pf41r0zrim2";
src = fetchFromGitHub {
owner = "qpdf";
repo = "qpdf";
rev = "release-qpdf-${version}";
sha256 = "0g3rqf4wd1n9cms7ra1jnszsgw5bygv37jq2l20d8z5fajckhyyi";
};
nativeBuildInputs = [ perl ];
buildInputs = [ zlib libjpeg ];
postPatch = ''
patchShebangs qpdf/fix-qdf
'';
preCheck = ''
patchShebangs qtest/bin/qtest-driver
'';