mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +03:00
imlib2: add svg and heif support
This commit is contained in:
parent
688695bde7
commit
078379eb33
1 changed files with 6 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
# Image file formats
|
# Image file formats
|
||||||
, libjpeg, libtiff, giflib, libpng, libwebp
|
, libjpeg, libtiff, giflib, libpng, libwebp
|
||||||
# imlib2 can load images from ID3 tags.
|
# imlib2 can load images from ID3 tags.
|
||||||
, libid3tag
|
, libid3tag, librsvg, libheif
|
||||||
, freetype , bzip2, pkg-config
|
, freetype , bzip2, pkg-config
|
||||||
, x11Support ? true, xlibsWrapper ? null
|
, x11Support ? true, xlibsWrapper ? null
|
||||||
}:
|
}:
|
||||||
|
@ -21,8 +21,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libjpeg libtiff giflib libpng libwebp
|
libjpeg libtiff giflib libpng libwebp
|
||||||
bzip2 freetype libid3tag
|
bzip2 freetype libid3tag libheif
|
||||||
] ++ optional x11Support xlibsWrapper;
|
] ++ optional x11Support xlibsWrapper
|
||||||
|
# Compilation error on Darwin with librsvg. For more information see:
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/166452#issuecomment-1090725613
|
||||||
|
++ optional (!stdenv.isDarwin) librsvg;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue