Subject: Re: [bug#78369] [PATCH electronics-team] gnu: prjtrellis: Update to 1.4-0.898329d.

From: Maxim Cournoyer <[email-masked]>
Date: Thu, 15 May 2025 11:10:36 +0900

Hi,

Cayetano Santos <[email-masked]> writes:

> * gnu/packages/electronics.scm (prjtrellis): Update to 1.4-0.898329d.

I've made the following changes:

--8<---------------cut here---------------start------------->8---
1 file changed, 7 insertions(+), 12 deletions(-)
gnu/packages/electronics.scm | 19 +++++++------------

modified   gnu/packages/electronics.scm
@@ -423,7 +423,7 @@ (define-public openboardview
     (license license:expat)))
 
 (define-public prjtrellis
-  ;; Last release is 2 years old.
+  ;; The last release is 2 years old; use the latest commit for now.
   (let ((commit "898329dddf6ce6463299973081f109d645b9c55f")
         (revision "0"))
     (package
@@ -450,21 +450,16 @@ (define-public prjtrellis
       (build-system cmake-build-system)
       (arguments
        (list
-        ;; The examples test directory requires nextpnr, using this package as a
-        ;; backend, which is provided by nextpnr-ecp5: the tests are to be run
-        ;; in this later package.
-        #:tests? #f
+        #:tests? #f                     ;no test suite
+        #:configure-flags
+        #~(list (string-append "-DPYBIND11_INCLUDE_DIR="
+                               (search-input-directory %build-inputs
+                                                       "include/pybind11")))
         #:phases
         #~(modify-phases %standard-phases
             (add-after 'unpack 'chdir
               (lambda _
-                (chdir "libtrellis")))
-            ;; point to pybind11 include dir
-            (add-after 'chdir 'setenv-pybind11
-              (lambda* (#:key inputs #:allow-other-keys)
-                (setenv "PYBIND11_INCLUDE_DIR"
-                        (string-append #$(this-package-input "pybind11")
-                                       "/include/pybind11")))))))
+                (chdir "libtrellis"))))))
       (native-inputs (list python))
       (inputs (list openocd boost pybind11))
       (synopsis "Placement and routing for ECP5 FPGAs")

--8<---------------cut here---------------end--------------->8---

And pushed!

-- 
Thanks,
Maxim