2019-09-28 00:37:26 +01:00
|
|
|
{ stdenv, fetchurl, python, autoconf }:
|
2010-08-09 21:59:38 +01:00
|
|
|
|
2013-03-09 17:44:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-09-28 00:37:26 +01:00
|
|
|
name = "jbig2dec-0.16";
|
2013-03-09 17:44:41 +00:00
|
|
|
|
2010-08-09 21:59:38 +01:00
|
|
|
src = fetchurl {
|
2019-09-28 00:37:26 +01:00
|
|
|
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927/${name}.tar.gz";
|
|
|
|
sha256 = "00h61y7bh3z6mqfzxyb318gyh0f8jwarg4hvlrm83rqps8avzxm4";
|
2010-08-09 21:59:38 +01:00
|
|
|
};
|
2013-03-09 17:44:41 +00:00
|
|
|
|
2018-08-08 19:36:13 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs test_jbig2dec.py
|
|
|
|
'';
|
|
|
|
|
2019-09-28 00:37:26 +01:00
|
|
|
buildInputs = [ autoconf ];
|
|
|
|
|
2018-08-08 19:36:13 +01:00
|
|
|
checkInputs = [ python ];
|
2019-09-28 00:37:26 +01:00
|
|
|
doCheck = true;
|
2018-08-08 19:36:13 +01:00
|
|
|
|
2010-08-09 21:59:38 +01:00
|
|
|
meta = {
|
2018-09-03 15:53:02 +01:00
|
|
|
homepage = https://www.jbig2dec.com/;
|
2010-08-09 21:59:38 +01:00
|
|
|
description = "Decoder implementation of the JBIG2 image compression format";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-08-09 21:59:38 +01:00
|
|
|
};
|
|
|
|
}
|