mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
imlib2: Add webp support
And better document why id3 is there In addition, review function signature formatting.
This commit is contained in:
parent
b0f9922f37
commit
968d075bd9
@ -1,6 +1,11 @@
|
||||
{ stdenv, fetchurl, libjpeg, libtiff, giflib, libpng, bzip2, pkgconfig
|
||||
, freetype, libid3tag
|
||||
, x11Support ? true, xlibsWrapper ? null }:
|
||||
{ stdenv, fetchurl
|
||||
# Image file formats
|
||||
, libjpeg, libtiff, giflib, libpng, libwebp
|
||||
# imlib2 can load images from ID3 tags.
|
||||
, libid3tag
|
||||
, freetype , bzip2, pkgconfig
|
||||
, x11Support ? true, xlibsWrapper ? null
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (stdenv.lib) optional;
|
||||
@ -14,8 +19,10 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0v8n3dswx7rxqfd0q03xwc7j2w1mv8lv18rdxv487a1xw5vklfad";
|
||||
};
|
||||
|
||||
buildInputs = [ libjpeg libtiff giflib libpng bzip2 freetype libid3tag ]
|
||||
++ optional x11Support xlibsWrapper;
|
||||
buildInputs = [
|
||||
libjpeg libtiff giflib libpng libwebp
|
||||
bzip2 freetype libid3tag
|
||||
] ++ optional x11Support xlibsWrapper;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user