2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl, python3, autoreconfHook }:
|
2010-08-09 22:59:38 +02:00
|
|
|
|
2013-03-09 18:44:41 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2020-05-14 13:50:15 +02:00
|
|
|
pname = "jbig2dec";
|
2020-10-20 23:05:28 +02:00
|
|
|
version = "0.19";
|
2013-03-09 18:44:41 +01:00
|
|
|
|
2010-08-09 22:59:38 +02:00
|
|
|
src = fetchurl {
|
2020-10-20 23:05:28 +02:00
|
|
|
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9533/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0dwa24kjqyg9hmm40fh048sdxfpnasz43l2rm8wlkw1qbdlpd517";
|
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
|
|
|
|
'';
|
|
|
|
|
2020-08-31 14:45:43 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2019-09-28 01:37:26 +02:00
|
|
|
|
2019-12-14 22:38:07 +01:00
|
|
|
checkInputs = [ python3 ];
|
2019-09-28 01:37:26 +02:00
|
|
|
doCheck = true;
|
2018-08-08 20:36:13 +02:00
|
|
|
|
2010-08-09 22:59:38 +02:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.jbig2dec.com/";
|
2010-08-09 22:59:38 +02:00
|
|
|
description = "Decoder implementation of the JBIG2 image compression format";
|
2021-01-21 18:00:13 +01:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
2010-08-09 22:59:38 +02:00
|
|
|
};
|
|
|
|
}
|