1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 03:48:57 +00:00
nixpkgs/pkgs/development/libraries/gd/default.nix

45 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl
, pkgconfig
, zlib
, libpng
, libjpeg ? null
, libwebp ? null
, libtiff ? null
, libXpm ? null
, fontconfig
, freetype
}:
stdenv.mkDerivation rec {
name = "gd-${version}";
2016-07-22 19:23:27 +01:00
version = "2.2.3";
2015-12-23 01:59:47 +00:00
src = fetchurl {
url = "https://github.com/libgd/libgd/releases/download/${name}/libgd-${version}.tar.xz";
2016-07-22 19:23:27 +01:00
sha256 = "0g3xz8jpz1pl2zzmssglrpa9nxiaa7rmcmvgpbrjz8k9cyynqsvl";
};
2015-12-23 01:59:47 +00:00
hardeningDisable = [ "format" ];
2015-12-23 01:59:47 +00:00
# -pthread gets passed to clang, causing warnings
configureFlags = stdenv.lib.optional stdenv.isDarwin "--enable-werror=no";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ zlib fontconfig freetype ];
propagatedBuildInputs = [ libpng libjpeg libwebp libtiff libXpm ];
outputs = [ "bin" "dev" "out" ];
2016-05-22 13:03:16 +01:00
postFixup = ''moveToOutput "bin/gdlib-config" $dev'';
2016-06-02 18:50:28 +01:00
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;
};
}