From abd35c43330a11d8e4d7c4df81d9eddb7248319d Mon Sep 17 00:00:00 2001 From: misuzu Date: Sun, 29 Dec 2024 16:07:15 +0200 Subject: [PATCH] python3Packages.ltpycld2: fixup build with gcc14 --- pkgs/development/python-modules/ltpycld2/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/ltpycld2/default.nix b/pkgs/development/python-modules/ltpycld2/default.nix index 510259d72d6e..35063a66a5be 100644 --- a/pkgs/development/python-modules/ltpycld2/default.nix +++ b/pkgs/development/python-modules/ltpycld2/default.nix @@ -21,11 +21,14 @@ buildPythonPackage rec { pythonImportsCheck = [ "pycld2" ]; - meta = with lib; { + # Fix build with gcc14 + # https://github.com/aboSamoor/pycld2/pull/62 + env.NIX_CFLAGS_COMPILE = "-Wno-narrowing"; + + meta = { description = "Python bindings around Google Chromium's embedded compact language detection library (CLD2)"; homepage = "https://github.com/LibreTranslate/pycld2"; - license = licenses.asl20; - maintainers = with maintainers; [ misuzu ]; - broken = stdenv.hostPlatform.isDarwin; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ misuzu ]; }; }