Files
nixpkgs/pkgs/development/libraries/jbig2dec/default.nix
T
Sergei Trofimovich c990061962 jbig2dec: 0.19 -> 0.20
Switched to github releases from jbig2dec project.

Changes: https://github.com/ArtifexSoftware/jbig2dec/releases/tag/0.20
2023-09-29 12:17:38 +01:00

32 lines
754 B
Nix

{ lib, stdenv, fetchurl, python3, autoconf, automake, libtool }:
stdenv.mkDerivation rec {
pname = "jbig2dec";
version = "0.20";
src = fetchurl {
url = "https://github.com/ArtifexSoftware/jbig2dec/archive/${version}/jbig2dec-${version}.tar.gz";
hash = "sha256-qXBTaaZjOrpTJpNFDsgCxWI5fhuCRmLegJ7ekvZ6/yE=";
};
postPatch = ''
patchShebangs test_jbig2dec.py
'';
preConfigure = ''
./autogen.sh
'';
nativeBuildInputs = [ autoconf automake libtool ];
nativeCheckInputs = [ python3 ];
doCheck = true;
meta = {
homepage = "https://www.jbig2dec.com/";
description = "Decoder implementation of the JBIG2 image compression format";
license = lib.licenses.agpl3;
platforms = lib.platforms.unix;
};
}