summary refs log tree commit diff
path: root/pkgs/development/libraries/gd/default.nix
blob: 7c3c53626b5d4de2ea5a5f2a0093c14c99e2ab6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{stdenv, fetchurl, zlib, libpng, freetype, libjpeg, fontconfig}:

stdenv.mkDerivation {
  name = "gd-2.0.35";
  
  src = fetchurl {
    url = http://www.libgd.org/releases/gd-2.0.35.tar.bz2;
    sha256 = "1y80lcmb8qbzf0a28841zxhq9ndfapmh2fsrqfd9lalxfj8288mz";
  };
  
  buildInputs = [zlib libpng freetype];

  propagatedBuildInputs = [libjpeg fontconfig]; # urgh

  configureFlags = "--without-x";

  meta = {
    homepage = http://www.libgd.org/;
    description = "An open source code library for the dynamic creation of images by programmers";
  };
}