lol

* Added libgd. * gnuplot 4.2.2.

svn path=/nixpkgs/trunk/; revision=9354

+39 -15
+21
pkgs/development/libraries/gd/default.nix
··· 1 + {stdenv, fetchurl, zlib, libpng, freetype, libjpeg, fontconfig}: 2 + 3 + stdenv.mkDerivation { 4 + name = "gd-2.0.35"; 5 + 6 + src = fetchurl { 7 + url = http://www.libgd.org/releases/gd-2.0.35.tar.bz2; 8 + sha256 = "1y80lcmb8qbzf0a28841zxhq9ndfapmh2fsrqfd9lalxfj8288mz"; 9 + }; 10 + 11 + buildInputs = [zlib libpng freetype]; 12 + 13 + propagatedBuildInputs = [libjpeg fontconfig]; # urgh 14 + 15 + configureFlags = "--without-x"; 16 + 17 + meta = { 18 + homepage = http://www.libgd.org/; 19 + description = "An open source code library for the dynamic creation of images by programmers"; 20 + }; 21 + }
+13 -14
pkgs/tools/graphics/gnuplot/default.nix
··· 1 - {stdenv, fetchurl, zlib, libpng, texinfo, 2 - libX11 ? null, 3 - libXt ? null, 4 - libXpm ? null, 5 - libXaw ? null, 6 - x11Support ? false 1 + { stdenv, fetchurl, zlib, gd, texinfo 2 + , libX11 ? null 3 + , libXt ? null 4 + , libXpm ? null 5 + , libXaw ? null 6 + , x11Support ? false 7 7 }: 8 8 9 9 assert x11Support -> ((libX11 != null) && 10 - (libXt != null) && (libXpm != null) && 11 - (libXaw != null)); 10 + (libXt != null) && (libXpm != null) && 11 + (libXaw != null)); 12 12 13 13 stdenv.mkDerivation { 14 14 # Gnuplot (which isn't open source) has a license that requires that 15 15 # we "add special version identification to distinguish your version 16 16 # in addition to the base release version number". Hence the "nix" 17 17 # suffix. 18 - name = "gnuplot-4.0-nix"; 18 + name = "gnuplot-4.2.2-nix"; 19 19 20 - # builder = ./builder.sh; 21 20 src = fetchurl { 22 - url = mirror://sourceforge/gnuplot/gnuplot-4.0.0.tar.gz; 23 - md5 = "66258443d9f93cc4f46b147dac33e63a"; 21 + url = mirror://sourceforge/gnuplot/gnuplot-4.2.2.tar.gz; 22 + sha256 = "14ca8wwdb4hdsgs51fqlrkcny3d4rm1vs54sfg5d0hr7iw2qlvvm"; 24 23 }; 25 24 26 25 configureFlags = if x11Support then ["--with-x"] else ["--without-x"]; 27 26 28 - buildInputs = [zlib libpng texinfo] ++ 29 - (if x11Support then [libX11 libXt libXpm libXaw] else []); 27 + buildInputs = [zlib gd texinfo] ++ 28 + (if x11Support then [libX11 libXt libXpm libXaw] else []); 30 29 }
+5 -1
pkgs/top-level/all-packages.nix
··· 429 429 }; 430 430 431 431 gnuplot = import ../tools/graphics/gnuplot { 432 - inherit fetchurl stdenv zlib libpng texinfo; 432 + inherit fetchurl stdenv zlib gd texinfo; 433 433 }; 434 434 435 435 gnuplotX = import ../tools/graphics/gnuplot { ··· 1536 1536 1537 1537 gettext_alts = import ../development/libraries/gettext { 1538 1538 inherit fetchurl stdenv; 1539 + }; 1540 + 1541 + gd = import ../development/libraries/gd { 1542 + inherit fetchurl stdenv zlib libpng freetype libjpeg fontconfig; 1539 1543 }; 1540 1544 1541 1545 gdal = stdenv.mkDerivation {