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

27 lines
660 B
Nix
Raw Normal View History

2019-09-27 23:37:26 +00:00
{ stdenv, fetchurl, python, autoconf }:
2013-03-09 17:44:41 +00:00
stdenv.mkDerivation rec {
2019-10-26 11:26:08 +00:00
name = "jbig2dec-0.17";
2013-03-09 17:44:41 +00:00
src = fetchurl {
2019-10-26 11:26:08 +00:00
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs950/${name}.tar.gz";
sha256 = "0wpvslmwazia3z8gyk343kbq6yj47pxr4x5yjvx332v309qssazp";
};
2013-03-09 17:44:41 +00:00
2018-08-08 18:36:13 +00:00
postPatch = ''
patchShebangs test_jbig2dec.py
'';
2019-09-27 23:37:26 +00:00
buildInputs = [ autoconf ];
2018-08-08 18:36:13 +00:00
checkInputs = [ python ];
2019-09-27 23:37:26 +00:00
doCheck = true;
2018-08-08 18:36:13 +00: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;
};
}