summary refs log tree commit diff
path: root/pkgs/tools/networking/jwhois/default.nix
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-02-20 17:26:44 +0200
committerArtturin <Artturin@artturin.com>2023-02-22 21:23:05 +0200
commit226e14914512d33cee00543cd947cf74d50a1258 (patch)
tree28ee852076b6620717b19be0001e978fae30cce1 /pkgs/tools/networking/jwhois/default.nix
parent6b2a05e19089c2b16c6ed52e7e495f8a9f903c60 (diff)
downloadnixpkgs-226e14914512d33cee00543cd947cf74d50a1258.tar
nixpkgs-226e14914512d33cee00543cd947cf74d50a1258.tar.gz
nixpkgs-226e14914512d33cee00543cd947cf74d50a1258.tar.bz2
nixpkgs-226e14914512d33cee00543cd947cf74d50a1258.tar.lz
nixpkgs-226e14914512d33cee00543cd947cf74d50a1258.tar.xz
nixpkgs-226e14914512d33cee00543cd947cf74d50a1258.tar.zst
nixpkgs-226e14914512d33cee00543cd947cf74d50a1258.zip
treewide: env.NIX_CFLAGS_COMPILE use optionalString instead of optional
env values must be strings
Diffstat (limited to 'pkgs/tools/networking/jwhois/default.nix')
-rw-r--r--pkgs/tools/networking/jwhois/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/networking/jwhois/default.nix b/pkgs/tools/networking/jwhois/default.nix
index 12494fc2699..9026a60e2f3 100644
--- a/pkgs/tools/networking/jwhois/default.nix
+++ b/pkgs/tools/networking/jwhois/default.nix
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
   # Work around error from <stdio.h> on aarch64-darwin:
   #     error: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
   # TODO: this should probably be fixed at a lower level than this?
-  env.NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-Wno-undef-prefix";
+  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-undef-prefix";
 
   meta = {
     description = "A client for the WHOIS protocol allowing you to query the owner of a domain name";