nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 44 lines 942 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 python3, 6 autoconf, 7 automake, 8 libtool, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "jbig2dec"; 13 version = "0.20"; 14 15 src = fetchurl { 16 url = "https://github.com/ArtifexSoftware/jbig2dec/archive/${version}/jbig2dec-${version}.tar.gz"; 17 hash = "sha256-qXBTaaZjOrpTJpNFDsgCxWI5fhuCRmLegJ7ekvZ6/yE="; 18 }; 19 20 postPatch = '' 21 patchShebangs test_jbig2dec.py 22 ''; 23 24 nativeBuildInputs = [ 25 autoconf 26 automake 27 libtool 28 ]; 29 30 # `autogen.sh` runs `configure`, and expects that any flags needed 31 # by `configure` (like `--host`) are passed to `autogen.sh`. 32 configureScript = "./autogen.sh"; 33 34 nativeCheckInputs = [ python3 ]; 35 doCheck = true; 36 37 meta = { 38 homepage = "https://www.jbig2dec.com/"; 39 description = "Decoder implementation of the JBIG2 image compression format"; 40 mainProgram = "jbig2dec"; 41 license = lib.licenses.agpl3Only; 42 platforms = lib.platforms.unix; 43 }; 44}