Merge pull request #194491 from patricksjackson/imlib2

imlib2: use xorg.* packages directly instead of xlibsWrapper
This commit is contained in:
Sergei Trofimovich 2022-10-08 07:33:40 +01:00 committed by GitHub
commit e185edf343
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@
# imlib2 can load images from ID3 tags.
, libid3tag, librsvg, libheif
, freetype , bzip2, pkg-config
, x11Support ? true, xlibsWrapper ? null
, x11Support ? true
, svgSupport ? false
, heifSupport ? false
, webpSupport ? false
@ -20,10 +20,11 @@
, openbox
, fluxbox
, enlightenment
, xorg
}:
let
inherit (lib) optional;
inherit (lib) optional optionals;
in
stdenv.mkDerivation rec {
pname = "imlib2";
@ -37,7 +38,7 @@ stdenv.mkDerivation rec {
buildInputs = [
libjpeg libtiff giflib libpng
bzip2 freetype libid3tag
] ++ optional x11Support xlibsWrapper
] ++ optionals x11Support [ xorg.libXft xorg.libXext ]
++ optional heifSupport libheif
++ optional svgSupport librsvg
++ optional webpSupport libwebp