mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
Added jbig2enc.
This commit is contained in:
parent
4b10fcf1ec
commit
f67bc6bbfd
19
pkgs/tools/graphics/jbig2enc/default.nix
Normal file
19
pkgs/tools/graphics/jbig2enc/default.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{stdenv, fetchurl, leptonica, zlib, libwebp, giflib, libjpeg, libpng, libtiff }: stdenv.mkDerivation {
|
||||
name = "jbig2enc-0.28";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://github.com/agl/jbig2enc/archive/0.28-dist.tar.gz;
|
||||
sha256 = "1wc0lmqz4jag3rhhk1xczlqpfv2qqp3fz7wzic2lba3vsbi1rrw3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ leptonica zlib libwebp giflib libjpeg libpng libtiff ];
|
||||
|
||||
# This is necessary, because the resulting library has
|
||||
# /tmp/nix-build-jbig2enc/src/.libs before /nix/store/jbig2enc/lib
|
||||
# in its rpath, which means that patchelf --shrink-rpath removes
|
||||
# the /nix/store one. By cleaning up before fixup, we ensure that
|
||||
# the /tmp/nix-build-jbig2enc/src/.libs directory is gone.
|
||||
preFixup = ''
|
||||
make clean
|
||||
'';
|
||||
}
|
@ -1318,6 +1318,8 @@ let
|
||||
|
||||
pdfjam = callPackage ../tools/typesetting/pdfjam { };
|
||||
|
||||
jbig2enc = callPackage ../tools/graphics/jbig2enc { };
|
||||
|
||||
pdfread = callPackage ../tools/graphics/pdfread { };
|
||||
|
||||
briss = callPackage ../tools/graphics/briss { };
|
||||
|
Loading…
Reference in New Issue
Block a user