2020-05-14 04:50:15 -07:00
|
|
|
{ stdenv, fetchurl, python3, autoreconfHook }:
|
2010-08-09 13:59:38 -07:00
|
|
|
|
2013-03-09 09:44:41 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2020-05-14 04:50:15 -07:00
|
|
|
pname = "jbig2dec";
|
|
|
|
version = "0.18";
|
2013-03-09 09:44:41 -08:00
|
|
|
|
2010-08-09 13:59:38 -07:00
|
|
|
src = fetchurl {
|
2020-05-14 04:50:15 -07:00
|
|
|
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs952/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0pigfw2v0ppvr0lbysm69gx0zsa5q2q92yrb8af2j3im6x97f6cy";
|
2010-08-09 13:59:38 -07:00
|
|
|
};
|
2013-03-09 09:44:41 -08:00
|
|
|
|
2018-08-08 11:36:13 -07:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs test_jbig2dec.py
|
|
|
|
'';
|
|
|
|
|
2020-05-14 04:50:15 -07:00
|
|
|
buildInputs = [ autoreconfHook ];
|
2019-09-27 16:37:26 -07:00
|
|
|
|
2019-12-14 13:38:07 -08:00
|
|
|
checkInputs = [ python3 ];
|
2019-09-27 16:37:26 -07:00
|
|
|
doCheck = true;
|
2018-08-08 11:36:13 -07:00
|
|
|
|
2010-08-09 13:59:38 -07:00
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://www.jbig2dec.com/";
|
2010-08-09 13:59:38 -07:00
|
|
|
description = "Decoder implementation of the JBIG2 image compression format";
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-08-09 13:59:38 -07:00
|
|
|
};
|
|
|
|
}
|