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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
699 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, python3, autoreconfHook }:
2013-03-09 17:44:41 +00:00
stdenv.mkDerivation rec {
pname = "jbig2dec";
version = "0.19";
2013-03-09 17:44:41 +00:00
src = fetchurl {
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9533/${pname}-${version}.tar.gz";
sha256 = "0dwa24kjqyg9hmm40fh048sdxfpnasz43l2rm8wlkw1qbdlpd517";
};
2013-03-09 17:44:41 +00:00
2018-08-08 18:36:13 +00:00
postPatch = ''
patchShebangs test_jbig2dec.py
'';
nativeBuildInputs = [ autoreconfHook ];
2019-09-27 23:37:26 +00:00
2019-12-14 21:38:07 +00:00
checkInputs = [ python3 ];
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";
2022-09-02 12:28:34 +00:00
license = lib.licenses.agpl3;
platforms = lib.platforms.unix;
};
}