Merge master into staging-next
This commit is contained in:
@@ -76,8 +76,7 @@ stdenv.mkDerivation (rec {
|
||||
outputs = [ "out" "info" ];
|
||||
|
||||
nativeBuildInputs = [ perl xz.bin ]
|
||||
++ optionals stdenv.hostPlatform.isCygwin [ autoreconfHook texinfo ] # due to patch
|
||||
++ optionals stdenv.hostPlatform.isMusl [ autoreconfHook bison ]; # due to patch
|
||||
++ optionals stdenv.hostPlatform.isCygwin [ autoreconfHook texinfo ]; # due to patch
|
||||
configureFlags = [ "--with-packager=https://NixOS.org" ]
|
||||
++ optional (singleBinary != false)
|
||||
("--enable-single-binary" + optionalString (isString singleBinary) "=${singleBinary}")
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
, zlib
|
||||
, szip ? null
|
||||
}:
|
||||
|
||||
let uselibtirpc = stdenv.isLinux;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hdf";
|
||||
version = "4.2.15";
|
||||
@@ -49,12 +50,13 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
libjpeg
|
||||
libtirpc
|
||||
szip
|
||||
zlib
|
||||
] ++ stdenv.lib.optionals uselibtirpc [
|
||||
libtirpc
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
preConfigure = stdenv.lib.optionalString uselibtirpc ''
|
||||
# Make tirpc discovery work with CMAKE_PREFIX_PATH
|
||||
substituteInPlace config/cmake/FindXDR.cmake \
|
||||
--replace 'find_path(XDR_INCLUDE_DIR NAMES rpc/types.h PATHS "/usr/include" "/usr/include/tirpc")' \
|
||||
|
||||
Reference in New Issue
Block a user