1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00
nixpkgs/pkgs/development/libraries/vigra/default.nix
Yury G. Kudryashov c1c3317f65 vigra: fix install
svn path=/nixpkgs/trunk/; revision=32362
2012-02-17 18:50:29 +00:00

26 lines
951 B
Nix

{ stdenv, fetchurl, cmake, libtiff, libpng, libjpeg, doxygen, python,
fftw, fftwSinglePrec, hdf5, boost, numpy }:
stdenv.mkDerivation rec {
name = "vigra-1.8.0";
src = fetchurl {
url = "${meta.homepage}/${name}-src.tar.gz";
sha256 = "0542qy1bqaq73l7i8aqdhwdbhd6m1wldsn1w2sfyf8yf4398ffpw";
};
buildInputs = [ cmake fftw fftwSinglePrec libtiff libpng libjpeg python boost
numpy hdf5 ];
preConfigure = "cmakeFlags+=\" -DVIGRANUMPY_INSTALL_DIR=$out/lib/${python.libPrefix}/site-packages\"";
cmakeFlags = stdenv.lib.optionals (stdenv.system == "x86_64-linux")
[ "-DCMAKE_CXX_FLAGS=-fPIC" "-DCMAKE_C_FLAGS=-fPIC" ];
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;
};
}