mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
8b2fc35987
Afterf8bdd7969d
it has become necessary for users of gd to also add inputs for optional image format support, such as libjpeg and libwebp. This patch makes the following commits obsolete: -972c438c03
-2113b7389a
-94286527ac
-a371094f1f
-f345d01974
39 lines
897 B
Nix
39 lines
897 B
Nix
{ stdenv, fetchurl
|
|
, pkgconfig
|
|
, zlib
|
|
, libpng
|
|
, libjpeg ? null
|
|
, libwebp ? null
|
|
, libtiff ? null
|
|
, libXpm ? null
|
|
, fontconfig
|
|
, freetype
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gd-${version}";
|
|
version = "2.2.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/libgd/libgd/releases/download/${name}/libgd-${version}.tar.xz";
|
|
sha256 = "0xmrqka1ggqgml84xbmkw1y0r0lg7qn657v5b1my8pry92p651vh";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ zlib fontconfig freetype ];
|
|
propagatedBuildInputs = [ libpng libjpeg libwebp libtiff libXpm ];
|
|
|
|
outputs = [ "dev" "out" "bin" ];
|
|
|
|
postFixup = ''moveToOutput "bin/gdlib-config" $dev'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://libgd.github.io/;
|
|
description = "A dynamic image creation library";
|
|
license = licenses.free; # some custom license
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|