From 79dec6e9a7e7ebaed1cc535f3a92f0fbe916188a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 29 Jul 2010 14:38:39 +0000 Subject: [PATCH] Adding Vigra svn path=/nixpkgs/trunk/; revision=22809 --- pkgs/development/libraries/vigra/default.nix | 24 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/libraries/vigra/default.nix diff --git a/pkgs/development/libraries/vigra/default.nix b/pkgs/development/libraries/vigra/default.nix new file mode 100644 index 000000000000..5b3b119cb1d0 --- /dev/null +++ b/pkgs/development/libraries/vigra/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, cmake, libtiff, libpng, libjpeg, doxygen, python, fftw }: +stdenv.mkDerivation { + name = "vigra-1.7.0"; + + src = fetchurl { + url = http://hci.iwr.uni-heidelberg.de/vigra/vigra-1.7.0-src.tar.gz; + sha256 = "1laf9p0h35xpzs98yd13alm17gh40sn9b7z01ylcja4g7p3a3hs4"; + }; + + buildInputs = [ cmake fftw libtiff libpng libjpeg doxygen python ]; + + cmakeFlags = if (stdenv.system == "x86_64-linux") then + "-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC" + else + ""; + + meta = { + description = "Novel computer vision C++ library with customizable algorithms and data structures"; + homepage = http://hci.iwr.uni-heidelberg.de/vigra/; + license = "MIT"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 36d4a4196dd6..61d3bc99cc35 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5473,6 +5473,10 @@ let inherit fetchurl stdenv pkgconfig libsndfile; }; + vigra = import ../development/libraries/vigra { + inherit fetchurl stdenv cmake libtiff libpng libjpeg doxygen python fftw; + }; + vtk = import ../development/libraries/vtk { inherit stdenv fetchurl cmake mesa; inherit (xlibs) libX11 xproto libXt;