hdf5-blosc: add passthru.updateScript, cleanup, add test
This commit is contained in:
parent
219158d36c
commit
519c9061de
@ -5,6 +5,7 @@
|
|||||||
cmake,
|
cmake,
|
||||||
hdf5,
|
hdf5,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -33,12 +34,13 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace CMakeLists.txt --replace 'set(BLOSC_INSTALL_DIR "''${CMAKE_CURRENT_BINARY_DIR}/blosc")' 'set(BLOSC_INSTALL_DIR "${c-blosc}")'
|
substituteInPlace CMakeLists.txt --replace-fail 'set(BLOSC_INSTALL_DIR "''${CMAKE_CURRENT_BINARY_DIR}/blosc")' 'set(BLOSC_INSTALL_DIR "${c-blosc}")'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DPLUGIN_INSTALL_PATH=${placeholder "plugin"}/hdf5/lib/plugin"
|
"-DPLUGIN_INSTALL_PATH=${placeholder "plugin"}/hdf5/lib/plugin"
|
||||||
"-DCMAKE_INSTALL_LIBDIR=lib"
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||||
|
"-DBUILD_TESTS=ON"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
@ -46,6 +48,10 @@ stdenv.mkDerivation rec {
|
|||||||
substituteAll ${./blosc_filter.pc.in} $out/lib/pkgconfig/blosc_filter.pc
|
substituteAll ${./blosc_filter.pc.in} $out/lib/pkgconfig/blosc_filter.pc
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Filter for HDF5 that uses the Blosc compressor";
|
description = "Filter for HDF5 that uses the Blosc compressor";
|
||||||
homepage = "https://github.com/Blosc/hdf5-blosc";
|
homepage = "https://github.com/Blosc/hdf5-blosc";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user