kitty: disable hardening feature based on more accurate condition

The `strictoverflow` hardening feature causes a build failure when using Clang as the compiler, not just on Darwin.
This commit is contained in:
Luflosi 2020-10-04 19:03:46 +02:00
parent 5d993eeb84
commit 11deddb7c8
No known key found for this signature in database
GPG key ID: 4E41E29EDCC345D0

View file

@ -68,7 +68,7 @@ buildPythonApplication rec {
];
# Causes build failure due to warning
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "strictoverflow";
hardeningDisable = stdenv.lib.optional stdenv.cc.isClang "strictoverflow";
dontConfigure = true;