From 786c47896e030a060f58de4f969193a498bc6fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 15 Oct 2025 10:46:22 +0200 Subject: [PATCH] python3Packages.hawkmoth: fix broken state with llvm 21 by using 20 Hawkmoth is broken with LLVM 21 release. This is already reported, but there is no stable fix on the Hawkmoth's size, yet. Thus this changes the used LLVM version in Hawkmoth to 20. https://github.com/jnikula/hawkmoth/pull/291 --- .../development/python-modules/hawkmoth/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/hawkmoth/default.nix b/pkgs/development/python-modules/hawkmoth/default.nix index ff0d98f2334b..03520ea155a6 100644 --- a/pkgs/development/python-modules/hawkmoth/default.nix +++ b/pkgs/development/python-modules/hawkmoth/default.nix @@ -3,13 +3,18 @@ buildPythonPackage, fetchFromGitHub, hatchling, + llvmPackages_20, libclang, sphinx, - clang, pytestCheckHook, strictyaml, }: +let + libclang_20 = libclang.override { + llvmPackages = llvmPackages_20; + }; +in buildPythonPackage rec { pname = "hawkmoth"; version = "0.21.0"; @@ -25,13 +30,13 @@ buildPythonPackage rec { build-system = [ hatchling ]; dependencies = [ - libclang + libclang_20 sphinx ]; - propagatedBuildInputs = [ clang ]; + propagatedBuildInputs = [ llvmPackages_20.clang ]; nativeCheckInputs = [ - clang + llvmPackages_20.clang pytestCheckHook strictyaml ];