2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, python3, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-06-18 07:06:33 +00:00
|
|
|
pname = "jbig2dec";
|
2020-11-06 00:33:48 +00:00
|
|
|
version = "0.19";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-11-06 00:33:48 +00:00
|
|
|
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9533/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0dwa24kjqyg9hmm40fh048sdxfpnasz43l2rm8wlkw1qbdlpd517";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs test_jbig2dec.py
|
|
|
|
'';
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = [ python3 ];
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://www.jbig2dec.com/";
|
|
|
|
description = "Decoder implementation of the JBIG2 image compression format";
|
2022-09-14 18:05:37 +00:00
|
|
|
license = lib.licenses.agpl3;
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|