From 2995066e9bf24f9f929589c3019d2cc4d2150ef0 Mon Sep 17 00:00:00 2001 From: Guillaume Bouchard Date: Tue, 16 Jan 2018 11:31:35 +0100 Subject: alembic: use threadsafe hdf5 (#30682) * hdf5: introduce hdf5-threadsafe variant Compiled with thread safe support and without the High Level library which is incompatible with thread safety. * alembic: clean buildInputs to nativeBuildInputs * alembic: use hdf5-threadsafe --- pkgs/development/libraries/alembic/default.nix | 5 +++-- pkgs/top-level/all-packages.nix | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/libraries/alembic/default.nix b/pkgs/development/libraries/alembic/default.nix index bd540cdd50053..a185f19a9a16d 100644 --- a/pkgs/development/libraries/alembic/default.nix +++ b/pkgs/development/libraries/alembic/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, unzip, cmake, openexr, hdf5 }: +{ stdenv, fetchFromGitHub, unzip, cmake, openexr, hdf5-threadsafe }: stdenv.mkDerivation rec { @@ -14,7 +14,8 @@ stdenv.mkDerivation rec outputs = [ "bin" "dev" "out" "lib" ]; - buildInputs = [ unzip cmake openexr hdf5 ]; + nativeBuildInputs = [ unzip cmake ]; + buildInputs = [ openexr hdf5-threadsafe ]; enableParallelBuilding = true; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b4063591476c5..06a6eaec0a288 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2688,6 +2688,13 @@ with pkgs; inherit gfortran; }); + hdf5-threadsafe = appendToName "threadsafe" (hdf5.overrideAttrs (oldAttrs: { + # Threadsafe hdf5 + # However, hdf5 hl (High Level) library is not considered stable + # with thread safety and should be disabled. + configureFlags = oldAttrs.configureFlags ++ ["--enable-threadsafe" "--disable-hl" ]; + })); + hdfview = callPackage ../tools/misc/hdfview { javac = jdk; }; -- cgit 1.4.1