summary refs log tree commit diff
path: root/pkgs/tools/text/gnupatch/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text/gnupatch/default.nix')
-rw-r--r--pkgs/tools/text/gnupatch/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/text/gnupatch/default.nix b/pkgs/tools/text/gnupatch/default.nix
index 57543eb303b0..13579b57e796 100644
--- a/pkgs/tools/text/gnupatch/default.nix
+++ b/pkgs/tools/text/gnupatch/default.nix
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
 
   buildInputs = stdenv.lib.optional doCheck ed;
 
-  configureFlags = if hostPlatform == buildPlatform then null else [
+  configureFlags = stdenv.lib.optionals (hostPlatform != buildPlatform) [
     "ac_cv_func_strnlen_working=yes"
   ];