From ba274e578c8f42d0f02005e9e2dfef7dfbe08e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 4 Mar 2010 16:41:10 +0000 Subject: [PATCH] Made graphicsmagick-config not say anything about libraries that would be needed for static linking, because we are linking it dynamically. Made octave link with graphicsmagick to get imread() working. Nevertheless, imread does not work, because of some problems between octave and latest versions of graphicsmagick: http://www-old.cae.wisc.edu/pipermail/octave-maintainers/2010-February/015295.html Next to do: add an older version of graphics magick for octave. svn path=/nixpkgs/trunk/; revision=20389 --- pkgs/applications/graphics/graphicsmagick/default.nix | 4 ++++ pkgs/development/interpreters/octave/default.nix | 5 +++-- pkgs/top-level/all-packages.nix | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/graphics/graphicsmagick/default.nix b/pkgs/applications/graphics/graphicsmagick/default.nix index 6ce05a670b11..980413bc8f81 100644 --- a/pkgs/applications/graphics/graphicsmagick/default.nix +++ b/pkgs/applications/graphics/graphicsmagick/default.nix @@ -19,6 +19,10 @@ stdenv.mkDerivation { zlib libtool ]; + postInstall = '' + sed -i 's/-ltiff.*'\'/\'/ $out/bin/* + ''; + meta = { homepage = http://www.graphicsmagick.org; description = "Swiss army knife of image processing"; diff --git a/pkgs/development/interpreters/octave/default.nix b/pkgs/development/interpreters/octave/default.nix index ea095706b223..f873f4e74754 100644 --- a/pkgs/development/interpreters/octave/default.nix +++ b/pkgs/development/interpreters/octave/default.nix @@ -1,5 +1,5 @@ {stdenv, fetchurl, gfortran, readline, ncurses, perl, flex, texinfo, qhull, -libX11}: +libX11, graphicsmagick}: stdenv.mkDerivation { name = "octave-3.2.4"; @@ -7,6 +7,7 @@ stdenv.mkDerivation { url = ftp://ftp.octave.org/pub/octave/octave-3.2.4.tar.bz2; sha256 = "0iyivx7qz7cvwz7qczqrl4ysqivlhn5ax92z9md0m77dqw2isis8"; }; - buildInputs = [gfortran readline ncurses perl flex texinfo qhull libX11]; + buildInputs = [gfortran readline ncurses perl flex texinfo qhull libX11 + graphicsmagick ]; configureFlags = "--enable-readline --enable-dl"; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index de41954f3784..53b8048bb2b4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2541,7 +2541,8 @@ let }; octave = import ../development/interpreters/octave { - inherit stdenv fetchurl gfortran readline ncurses perl flex qhull texinfo; + inherit stdenv fetchurl gfortran readline ncurses perl flex qhull texinfo + graphicsmagick; inherit (xlibs) libX11; };