From 22e20111f2ca02a63e02a6a9ed2b2006cb67dbaf Mon Sep 17 00:00:00 2001 From: Hugo Buddelmeijer Date: Sat, 23 May 2026 20:13:12 +0200 Subject: [PATCH] gnu: python-hdlconvertor: Fix build with Python 3.12+. * gnu/packages/electronics.scm (python-hdlconvertor): Fix Python 3.12+ build. [arguments]<#:phases>: Replace hardcoded python3.11 path. Relates-to: guix/guix!8784 Change-Id: I5f70c48e3e705b4f26d849de81de16aae395696c Signed-off-by: Sharlatan Hellseher --- gnu/packages/electronics.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index d1d7e7f42c0..20a316ee47f 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -3436,8 +3436,12 @@ SystemVerilog, and SystemC, with conversion between languages and to JSON.") inputs "include/antlr4-runtime")) (antlr4cpp-lib (search-input-file inputs "lib/libantlr4-runtime.so")) - (python-include (search-input-directory - inputs "include/python3.11"))) + (python-include + (search-input-directory + inputs + (string-append + "include/python" + #$(version-major+minor (package-version python)))))) ;; Patch CMake to use our paths directly. (substitute* "src/CMake_antlr4.txt" (("set\\(ANTLR_CLASSPATH \"\"\\)")