nixpkgs/pkgs/development/libraries/jbig2dec/default.nix

28 lines
710 B
Nix
Raw Normal View History

{ stdenv, fetchurl, python3, autoreconfHook }:
2013-03-09 18:44:41 +01:00
stdenv.mkDerivation rec {
pname = "jbig2dec";
version = "0.18";
2013-03-09 18:44:41 +01:00
src = fetchurl {
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs952/${pname}-${version}.tar.gz";
sha256 = "0pigfw2v0ppvr0lbysm69gx0zsa5q2q92yrb8af2j3im6x97f6cy";
};
2013-03-09 18:44:41 +01:00
2018-08-08 20:36:13 +02:00
postPatch = ''
patchShebangs test_jbig2dec.py
'';
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
meta = {
homepage = "https://www.jbig2dec.com/";
description = "Decoder implementation of the JBIG2 image compression format";
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.unix;
};
}