From 078379eb336c73ebe87323732b53ea06e8e700cb Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Mon, 4 Apr 2022 18:45:13 +0200 Subject: [PATCH] imlib2: add svg and heif support --- pkgs/development/libraries/imlib2/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/imlib2/default.nix b/pkgs/development/libraries/imlib2/default.nix index 43f3c71d394e..a882a6608335 100644 --- a/pkgs/development/libraries/imlib2/default.nix +++ b/pkgs/development/libraries/imlib2/default.nix @@ -2,7 +2,7 @@ # Image file formats , libjpeg, libtiff, giflib, libpng, libwebp # imlib2 can load images from ID3 tags. -, libid3tag +, libid3tag, librsvg, libheif , freetype , bzip2, pkg-config , x11Support ? true, xlibsWrapper ? null }: @@ -21,8 +21,11 @@ stdenv.mkDerivation rec { buildInputs = [ libjpeg libtiff giflib libpng libwebp - bzip2 freetype libid3tag - ] ++ optional x11Support xlibsWrapper; + bzip2 freetype libid3tag libheif + ] ++ 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 ];