qpdf: 9.1.1 -> 10.0.1

Use fetchFromGitHub. Remove 1 patchShebangs hook now unneeded.
This commit is contained in:
Doron Behar 2020-09-11 12:57:51 +03:00
parent 6d4b93323e
commit 5262662d80

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
'';