From 2038237301d6a30388673d0e37e2d0c02f6af5f1 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 8 Apr 2025 04:07:18 +0000 Subject: [PATCH] nano: fix cross compilation, enable strictDeps (cherry picked from commit 6afc61c612885b9dfdf594f34b0558471f3afbca) --- pkgs/applications/editors/nano/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix index 9a38a6069739..a471df022b95 100644 --- a/pkgs/applications/editors/nano/default.nix +++ b/pkgs/applications/editors/nano/default.nix @@ -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 = {