nixpkgs/pkgs/development/libraries/gd/default.nix

39 lines
897 B
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-05-30 09:46:20 +02:00
version = "2.2.1";
src = fetchurl {
url = "https://github.com/libgd/libgd/releases/download/${name}/libgd-${version}.tar.xz";
2016-05-30 09:46:20 +02:00
sha256 = "0xmrqka1ggqgml84xbmkw1y0r0lg7qn657v5b1my8pry92p651vh";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ zlib fontconfig freetype ];
propagatedBuildInputs = [ libpng libjpeg libwebp libtiff libXpm ];
2016-05-22 14:03:16 +02:00
outputs = [ "dev" "out" "bin" ];
postFixup = ''moveToOutput "bin/gdlib-config" $dev'';
2016-06-02 19:50:28 +02: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;
};
}