nixpkgs/pkgs/development/libraries/vigra/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.3 KiB
Nix
Raw Normal View History

2021-11-01 14:58:00 +00:00
{ lib
, stdenv
, fetchFromGitHub
, boost
, cmake
, fftw
, fftwSinglePrec
, hdf5
, ilmbase
, libjpeg
, libpng
, libtiff
, openexr
2022-01-12 03:40:07 +00:00
, python3
2021-11-01 14:58:00 +00:00
}:
2015-06-25 21:56:09 +01:00
2016-10-18 16:07:46 +01:00
let
2022-01-12 03:40:07 +00:00
python = python3.withPackages (py: with py; [ numpy ]);
2021-11-01 14:58:00 +00:00
in
stdenv.mkDerivation rec {
pname = "vigra";
2022-03-28 20:23:42 +01:00
version = "unstable-2022-01-11";
2021-11-01 14:58:00 +00:00
src = fetchFromGitHub {
owner = "ukoethe";
repo = "vigra";
2022-03-28 20:23:42 +01:00
rev = "093d57d15c8c237adf1704d96daa6393158ce299";
sha256 = "sha256-pFANoT00Wkh1/Dyd2x75IVTfyaoVA7S86tafUSr29Og=";
};
2016-09-01 17:11:21 +01:00
NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
2015-06-25 21:56:09 +01:00
nativeBuildInputs = [ cmake ];
2021-11-01 14:58:00 +00:00
buildInputs = [
boost
fftw
fftwSinglePrec
hdf5
ilmbase
libjpeg
libpng
libtiff
openexr
python
];
preConfigure = "cmakeFlags+=\" -DVIGRANUMPY_INSTALL_DIR=$out/lib/${python.libPrefix}/site-packages\"";
2015-06-25 21:56:09 +01:00
cmakeFlags = [ "-DWITH_OPENEXR=1" ]
2021-11-01 14:58:00 +00:00
++ lib.optionals (stdenv.hostPlatform.system == "x86_64-linux")
[ "-DCMAKE_CXX_FLAGS=-fPIC" "-DCMAKE_C_FLAGS=-fPIC" ];
2015-06-25 21:56:09 +01:00
meta = with lib; {
description = "Novel computer vision C++ library with customizable algorithms and data structures";
homepage = "https://hci.iwr.uni-heidelberg.de/vigra";
2015-06-25 21:56:09 +01:00
license = licenses.mit;
maintainers = [ maintainers.viric ];
2018-04-17 20:39:10 +01:00
platforms = platforms.unix;
};
}