Skip to content

Commit 786c478

Browse files
committed
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. jnikula/hawkmoth#291
1 parent cf3f5c4 commit 786c478

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

pkgs/development/python-modules/hawkmoth/default.nix

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
buildPythonPackage,
44
fetchFromGitHub,
55
hatchling,
6+
llvmPackages_20,
67
libclang,
78
sphinx,
8-
clang,
99
pytestCheckHook,
1010
strictyaml,
1111
}:
12+
let
13+
libclang_20 = libclang.override {
14+
llvmPackages = llvmPackages_20;
15+
};
1216

17+
in
1318
buildPythonPackage rec {
1419
pname = "hawkmoth";
1520
version = "0.21.0";
@@ -25,13 +30,13 @@ buildPythonPackage rec {
2530
build-system = [ hatchling ];
2631

2732
dependencies = [
28-
libclang
33+
libclang_20
2934
sphinx
3035
];
31-
propagatedBuildInputs = [ clang ];
36+
propagatedBuildInputs = [ llvmPackages_20.clang ];
3237

3338
nativeCheckInputs = [
34-
clang
39+
llvmPackages_20.clang
3540
pytestCheckHook
3641
strictyaml
3742
];

0 commit comments

Comments
 (0)