summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCayetano Santos <csantosb@inventati.org>2025-05-11 12:41:57 +0200
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-05-15 11:09:11 +0900
commit7b73f02c38d568147f1b6a7ff4467f73a212cd1e (patch)
tree6a924b866422ae102140e704ba2f5b8e00c49e9b
parentf858bc1d4bff473a3eed6eb2f7fcf79cebfc9844 (diff)
gnu: prjtrellis: Update to 1.4-0.898329d.
* gnu/packages/electronics.scm (prjtrellis): Update to 1.4-0.898329d. [arguments] <#:tests?>: Clarify comment. <#:configure-flags>: New argument. <#:phases> {setenv-pybind11}: Delete phase. Change-Id: I7773415ee875fe266e523ee8fda25467db1b85f5 Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
-rw-r--r--gnu/packages/electronics.scm90
1 files changed, 44 insertions, 46 deletions
diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm
index 21c088460c..dc9de79ffa 100644
--- a/gnu/packages/electronics.scm
+++ b/gnu/packages/electronics.scm
@@ -423,50 +423,48 @@ such as:
(license license:expat)))
(define-public prjtrellis
- (package
- (name "prjtrellis")
- (version "1.4")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/YosysHQ/prjtrellis/")
- (commit version)
- ;; Pull the bitstream database for ECP5 devices; this is useful
- ;; only by prjtrellis: there is no need to package it separately.
- (recursive? #t)))
- (file-name (git-file-name name version))
- (modules '((guix build utils)))
- (snippet
- ;; Remove bundled source code for which Guix has packages.
- '(with-directory-excursion "libtrellis/3rdparty"
- (for-each delete-file-recursively
- '("pybind11"))))
- (sha256
- (base32 "0c3asdfrjmnc6q3vawn3nfghgg43iajwy2zb8kck9d3wrypbhlmc"))))
- (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
- #: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")))))))
- (native-inputs (list python))
- (inputs (list openocd boost pybind11))
- (synopsis "Placement and routing for ECP5 FPGAs")
- (description
- "Project Trellis is a Nextpnr backend compatible with ECP5 FPGAs.
+ ;; The last release is 2 years old; use the latest commit for now.
+ (let ((commit "898329dddf6ce6463299973081f109d645b9c55f")
+ (revision "0"))
+ (package
+ (name "prjtrellis")
+ (version (git-version "1.4" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/YosysHQ/prjtrellis/")
+ (commit commit)
+ ;; Pull the bitstream database for ECP5 devices; this is useful
+ ;; only by prjtrellis: there is no need to package it separately.
+ (recursive? #t)))
+ (file-name (git-file-name name version))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Remove bundled source code for which Guix has packages.
+ '(with-directory-excursion "libtrellis/3rdparty"
+ (for-each delete-file-recursively
+ '("pybind11"))))
+ (sha256
+ (base32 "1qljgn7rxz114vki21rms70zi9rgr4gw7crdfihxx1n68zgv60gg"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #: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"))))))
+ (native-inputs (list python))
+ (inputs (list openocd boost pybind11))
+ (synopsis "Placement and routing for ECP5 FPGAs")
+ (description
+ "Project Trellis is a Nextpnr backend compatible with ECP5 FPGAs.
The following features are currently available:
@itemize
@item logic slice functionality, including carries
@@ -478,8 +476,8 @@ The following features are currently available:
@item global networks and PLLs
@item transcievers (DCUs.)
@end itemize")
- (home-page "https://github.com/YosysHQ/prjtrellis/")
- (license license:expat)))
+ (home-page "https://github.com/YosysHQ/prjtrellis/")
+ (license license:expat))))
(define-public opensta
;; There are no releases, we use last commit.