Skip to content

Commit 55b3646

Browse files
authored
matio: avoid ac_cv_av_copy check to fix cross building (#357235)
2 parents 5dc2bcc + 7322145 commit 55b3646

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

pkgs/by-name/ma/matio/package.nix

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
{
22
fetchurl,
3+
hdf5,
34
lib,
5+
matio,
6+
nix-update-script,
7+
pkgconf,
48
stdenv,
9+
testers,
10+
validatePkgConfig,
11+
zlib,
512
}:
613

714
stdenv.mkDerivation (finalAttrs: {
@@ -13,13 +20,39 @@ stdenv.mkDerivation (finalAttrs: {
1320
hash = "sha256-naaYk0ohVprwWOY0hWRmb0UCnmwrCHjKDY+WCb93uNg=";
1421
};
1522

23+
configureFlags = [ "ac_cv_va_copy=1" ];
24+
25+
nativeBuildInputs = [
26+
pkgconf
27+
validatePkgConfig
28+
];
29+
30+
buildInputs = [
31+
hdf5
32+
zlib
33+
];
34+
35+
passthru = {
36+
tests = {
37+
pkg-config = testers.hasPkgConfigModules {
38+
package = matio;
39+
versionCheck = true;
40+
};
41+
version = testers.testVersion {
42+
package = matio;
43+
};
44+
};
45+
updateScript = nix-update-script { };
46+
};
47+
1648
meta = {
1749
changelog = "https://sourceforge.net/p/matio/news/";
1850
description = "C library for reading and writing Matlab MAT files";
1951
homepage = "http://matio.sourceforge.net/";
2052
license = lib.licenses.bsd2;
21-
maintainers = [ ];
53+
maintainers = with lib.maintainers; [ jwillikers ];
2254
mainProgram = "matdump";
2355
platforms = lib.platforms.all;
56+
pkgConfigModules = [ "matio" ];
2457
};
2558
})

0 commit comments

Comments
 (0)