2018-08-08 20:36:13 +02:00
|
|
|
{ stdenv, fetchurl, python }:
|
2010-08-09 22:59:38 +02:00
|
|
|
|
2013-03-09 18:44:41 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-12-09 19:16:36 +01:00
|
|
|
name = "jbig2dec-0.14";
|
2013-03-09 18:44:41 +01:00
|
|
|
|
2010-08-09 22:59:38 +02:00
|
|
|
src = fetchurl {
|
2018-09-03 16:54:14 +02:00
|
|
|
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs922/${name}.tar.gz";
|
2017-12-09 19:16:36 +01:00
|
|
|
sha256 = "0k01hp0q4275fj4rbr1gy64svfraw5w7wvwl08yjhvsnpb1rid11";
|
2010-08-09 22:59:38 +02:00
|
|
|
};
|
2013-03-09 18:44:41 +01:00
|
|
|
|
2018-08-08 20:36:13 +02:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs test_jbig2dec.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ python ];
|
|
|
|
doCheck = false; # fails 1 of 4 tests
|
|
|
|
|
2010-08-09 22:59:38 +02:00
|
|
|
meta = {
|
2018-09-03 16:53:02 +02:00
|
|
|
homepage = https://www.jbig2dec.com/;
|
2010-08-09 22:59:38 +02:00
|
|
|
description = "Decoder implementation of the JBIG2 image compression format";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-08-09 22:59:38 +02:00
|
|
|
};
|
|
|
|
}
|