about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2024-02-24 10:42:05 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2024-02-25 23:20:40 +0100
commitc2563bc1ec2837e7fced3bbe78708a20f7466bd3 (patch)
tree95be1ecc3c71e729b2a46cb3e229a97cf9ad694b
parentb79beadd1e07f196e082321b321aa46ce2a271d7 (diff)
python312Packages.pillow-heif: fix build with clang
-rw-r--r--pkgs/development/python-modules/pillow-heif/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pillow-heif/default.nix b/pkgs/development/python-modules/pillow-heif/default.nix
index 2496bd1b36096..33575ace5508f 100644
--- a/pkgs/development/python-modules/pillow-heif/default.nix
+++ b/pkgs/development/python-modules/pillow-heif/default.nix
@@ -55,6 +55,9 @@ buildPythonPackage rec {
     x265
   ];
 
+  # clang-16: error: argument unused during compilation: '-fno-strict-overflow' [-Werror,-Wunused-command-line-argument]
+  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument";
+
   propagatedBuildInputs = [
     pillow
   ];