mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 03:39:59 +00:00
Merge pull request #69642 from ttuegel/bug--staging-19.09--hdf5
hdf5: Fix dependencies and flavors with multiple outputs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPyPy, pytest
|
||||
{ stdenv, lib, buildPythonPackage, fetchPypi, isPyPy, pytest
|
||||
, numpy, zlib, netcdf, hdf5, curl, libjpeg, cython, cftime
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
@@ -37,7 +37,7 @@ buildPythonPackage rec {
|
||||
|
||||
# Variables used to configure the build process
|
||||
USE_NCCONFIG="0";
|
||||
HDF5_DIR=hdf5;
|
||||
HDF5_DIR = lib.getDev hdf5;
|
||||
NETCDF4_DIR=netcdf;
|
||||
CURL_DIR=curl.dev;
|
||||
JPEG_DIR=libjpeg.dev;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchPypi, python, buildPythonPackage
|
||||
{ stdenv, lib, fetchPypi, python, buildPythonPackage
|
||||
, cython, bzip2, lzo, numpy, numexpr, hdf5, six, c-blosc, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -16,7 +16,7 @@ buildPythonPackage rec {
|
||||
# The setup script complains about missing run-paths, but they are
|
||||
# actually set.
|
||||
setupPyBuildFlags =
|
||||
[ "--hdf5=${hdf5}"
|
||||
[ "--hdf5=${lib.getDev hdf5}"
|
||||
"--lzo=${lzo}"
|
||||
"--bzip2=${bzip2.dev}"
|
||||
"--blosc=${c-blosc}"
|
||||
|
||||
@@ -53,7 +53,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postInstall = ''
|
||||
find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
|
||||
moveToOutput bin/h5cc "''${!outputDev}"
|
||||
moveToOutput 'bin/h5cc' "''${!outputDev}"
|
||||
moveToOutput 'bin/h5c++' "''${!outputDev}"
|
||||
moveToOutput 'bin/h5fc' "''${!outputDev}"
|
||||
moveToOutput 'bin/h5pcc' "''${!outputDev}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user