[Backport release-24.11] nano: fix cross compilation, enable strictDeps (#405571)

This commit is contained in:
Aleksana
2025-05-22 00:13:07 +08:00
committed by GitHub

View File

@@ -47,11 +47,15 @@ stdenv.mkDerivation rec {
"info"
];
configureFlags = [
"--sysconfdir=/etc"
(lib.enableFeature enableNls "nls")
(lib.enableFeature enableTiny "tiny")
];
configureFlags =
[
"--sysconfdir=/etc"
(lib.enableFeature enableNls "nls")
(lib.enableFeature enableTiny "tiny")
]
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
"gl_cv_func_strcasecmp_works=yes"
];
postInstall =
if enableTiny then
@@ -62,6 +66,7 @@ stdenv.mkDerivation rec {
'';
enableParallelBuilding = true;
strictDeps = true;
passthru = {
tests = {