summary refs log tree commit diff
path: root/pkgs/development/web
diff options
context:
space:
mode:
authorEmily Trau <emily@downunderctf.com>2023-11-13 22:19:30 +1100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-18 05:55:44 +0100
commit58046c39a53c83994216b60e79a6e7545d39eb4b (patch)
tree7313a1bd1298812974306e852460ccad55405574 /pkgs/development/web
parent5d50cc4fd51502cfec4c349d91b02600dfcc7654 (diff)
downloadnixpkgs-58046c39a53c83994216b60e79a6e7545d39eb4b.tar
nixpkgs-58046c39a53c83994216b60e79a6e7545d39eb4b.tar.gz
nixpkgs-58046c39a53c83994216b60e79a6e7545d39eb4b.tar.bz2
nixpkgs-58046c39a53c83994216b60e79a6e7545d39eb4b.tar.lz
nixpkgs-58046c39a53c83994216b60e79a6e7545d39eb4b.tar.xz
nixpkgs-58046c39a53c83994216b60e79a6e7545d39eb4b.tar.zst
nixpkgs-58046c39a53c83994216b60e79a6e7545d39eb4b.zip
deno: fix `-Wno-unknown-warning-option` error with clang
Diffstat (limited to 'pkgs/development/web')
-rw-r--r--pkgs/development/web/deno/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/web/deno/default.nix b/pkgs/development/web/deno/default.nix
index 603c9bf5d9e..1f4be5be3a5 100644
--- a/pkgs/development/web/deno/default.nix
+++ b/pkgs/development/web/deno/default.nix
@@ -44,6 +44,9 @@ rustPlatform.buildRustPackage rec {
     (with darwin.apple_sdk.frameworks; [ Security CoreServices Metal Foundation QuartzCore ])
   );
 
+  # work around "error: unknown warning group '-Wunused-but-set-parameter'"
+  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unknown-warning-option";
+
   buildAndTestSubdir = "cli";
 
   # The v8 package will try to download a `librusty_v8.a` release at build time to our read-only filesystem