fix: add clamav cross-compile workaround (cmake try_run for FD passing, uname POSIX, struct packing, SAR)
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -184,6 +184,16 @@
|
|||||||
(x: x?pname && x.pname != "perl-ldap")
|
(x: x?pname && x.pname != "perl-ldap")
|
||||||
(old.propagatedBuildInputs or []);
|
(old.propagatedBuildInputs or []);
|
||||||
});
|
});
|
||||||
|
# clamav try_run fails cross-compile (cmake modules all use the same
|
||||||
|
# generic `test_run_result` cache variable name for FD passing, uname
|
||||||
|
# POSIX, struct packing, and signed right-shift checks).
|
||||||
|
# On aarch64 Linux (glibc + GCC) all four return 0, so pre-set it.
|
||||||
|
clamav = prev.clamav.overrideAttrs (old: {
|
||||||
|
cmakeFlags = (old.cmakeFlags or []) ++ [
|
||||||
|
"-Dtest_run_result=0"
|
||||||
|
"-Dtest_run_result__TRYRUN_OUTPUT="
|
||||||
|
];
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
uconsoleRpiPipewireOverlay = final: prev: {
|
uconsoleRpiPipewireOverlay = final: prev: {
|
||||||
|
|||||||
Reference in New Issue
Block a user