matio: avoid ac_cv_av_copy check to fix cross building (#357235)
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
{
|
||||
fetchurl,
|
||||
hdf5,
|
||||
lib,
|
||||
matio,
|
||||
nix-update-script,
|
||||
pkgconf,
|
||||
stdenv,
|
||||
testers,
|
||||
validatePkgConfig,
|
||||
zlib,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@@ -13,13 +20,39 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-naaYk0ohVprwWOY0hWRmb0UCnmwrCHjKDY+WCb93uNg=";
|
||||
};
|
||||
|
||||
configureFlags = [ "ac_cv_va_copy=1" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgconf
|
||||
validatePkgConfig
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
hdf5
|
||||
zlib
|
||||
];
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
pkg-config = testers.hasPkgConfigModules {
|
||||
package = matio;
|
||||
versionCheck = true;
|
||||
};
|
||||
version = testers.testVersion {
|
||||
package = matio;
|
||||
};
|
||||
};
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = {
|
||||
changelog = "https://sourceforge.net/p/matio/news/";
|
||||
description = "C library for reading and writing Matlab MAT files";
|
||||
homepage = "http://matio.sourceforge.net/";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = [ ];
|
||||
maintainers = with lib.maintainers; [ jwillikers ];
|
||||
mainProgram = "matdump";
|
||||
platforms = lib.platforms.all;
|
||||
pkgConfigModules = [ "matio" ];
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user