depot/third_party/nixpkgs/pkgs/development/libraries/jbig2dec/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

27 lines
702 B
Nix

{ lib, stdenv, fetchurl, python3, autoreconfHook }:
stdenv.mkDerivation rec {
pname = "jbig2dec";
version = "0.19";
src = fetchurl {
url = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9533/${pname}-${version}.tar.gz";
sha256 = "0dwa24kjqyg9hmm40fh048sdxfpnasz43l2rm8wlkw1qbdlpd517";
};
postPatch = ''
patchShebangs test_jbig2dec.py
'';
nativeBuildInputs = [ autoreconfHook ];
checkInputs = [ python3 ];
doCheck = true;
meta = {
homepage = "https://www.jbig2dec.com/";
description = "Decoder implementation of the JBIG2 image compression format";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
};
}