3
0
Fork 0
forked from mirrors/nixpkgs

vigra: Build on darwin

This commit is contained in:
Matthew Pickering 2018-04-17 20:39:10 +01:00
parent 9c34d1069f
commit 2891beb31c

View file

@ -15,6 +15,12 @@ in stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
# Fixes compilation with clang (on darwin) see https://github.com/ukoethe/vigra/issues/414
patches =
let clangPatch = fetchurl { url = "https://github.com/ukoethe/vigra/commit/81958d302494e137f98a8b1d7869841532f90388.patch";
sha256 = "1i1w6smijgb5z8bg9jaq84ccy00k2sxm87s37lgjpyix901gjlgi"; };
in [ clangPatch ];
buildInputs = [ boost cmake fftw fftwSinglePrec hdf5 ilmbase libjpeg libpng
libtiff numpy openexr python ];
@ -31,6 +37,6 @@ in stdenv.mkDerivation rec {
homepage = https://hci.iwr.uni-heidelberg.de/vigra;
license = licenses.mit;
maintainers = [ maintainers.viric ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}