GNU bug report logs -
#78016
[PATCH electronics-team] gnu: Add symbiyosys.
Previous Next
Reported by: Cayetano Santos <csantosb <at> inventati.org>
Date: Wed, 23 Apr 2025 15:36:06 UTC
Severity: normal
Tags: moreinfo, patch
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#78016: [PATCH electronics-team] gnu: Add symbiyosys.
which was filed against the guix-patches package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 78016 <at> debbugs.gnu.org.
--
78016: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78016
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hi!
Cayetano Santos <csantosb <at> inventati.org> writes:
> From: Cayetano Santos via Guix-patches via <guix-patches <at> gnu.org>
>
> * gnu/packages/electronics.scm (symbiyosys): New variable.
Pushed, with the small adjustments below:
--8<---------------cut here---------------start------------->8---
modified gnu/packages/electronics.scm
@@ -715,7 +715,7 @@ (define-public symbiyosys
;; (invoke "make" "-C" "docs" "info")))
(add-before 'check 'git-init
(lambda _
- (invoke "git" "init"))) ;check expects a git repo
+ (invoke "git" "init"))) ;check expects a git repo
(add-after 'git-init 'patch-/usr/bin/env
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "sbysrc/sby_core.py"
@@ -724,8 +724,10 @@ (define-public symbiyosys
(substitute* "sbysrc/sby.py"
(("/usr/bin/env python")
(search-input-file inputs "bin/python3")))))
- ;; The tests related to abc (berkeley) binary used currently
- ;; produce errors. We need abc-yosyshq, see #78059.
+ ;; The tests related to abc (berkeley) binary used currently produce
+ ;; errors. The abc-yosyshq fork would make the tests pass, but
+ ;; cannot be packaged due to the fork's non-free licensing (see the
+ ;; README, which specifies a non-commercial restriction).
(add-after 'patch-/usr/bin/env 'disable-abc-tests
(lambda _
(delete-file "tests/keepgoing/keepgoing_multi_step.sby")
--8<---------------cut here---------------end--------------->8---
Thank you!
--
Thanks,
Maxim
[Message part 3 (message/rfc822, inline)]
* gnu/packages/electronics.scm (symbiyosys): New variable.
Change-Id: I1a3758e4bf46fc6d57ef63a0c0f5f2e39a862c4d
---
gnu/packages/electronics.scm | 65 +++++++++++++++++++++++++++++++++++-
1 file changed, 64 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm
index 12e44f234a..7d0dfc3095 100644
--- a/gnu/packages/electronics.scm
+++ b/gnu/packages/electronics.scm
@@ -46,6 +46,7 @@ (define-module (gnu packages electronics)
#:use-module (gnu packages documentation)
#:use-module (gnu packages embedded)
#:use-module (gnu packages fontutils)
+ #:use-module (gnu packages fpga)
#:use-module (gnu packages gl)
#:use-module (gnu packages glib)
#:use-module (gnu packages graphviz)
@@ -54,6 +55,7 @@ (define-module (gnu packages electronics)
#:use-module (gnu packages libusb)
#:use-module (gnu packages linux)
#:use-module (gnu packages m4)
+ #:use-module (gnu packages maths)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
@@ -67,7 +69,8 @@ (define-module (gnu packages electronics)
#:use-module (gnu packages swig)
#:use-module (gnu packages tls)
#:use-module (gnu packages toolkits)
- #:use-module (gnu packages version-control))
+ #:use-module (gnu packages version-control)
+ #:use-module (gnu packages xml))
(define-public comedilib
(package
@@ -635,6 +638,66 @@ (define-public sigrok-firmware-fx2lafw
them usable as simple logic analyzer and/or oscilloscope hardware.")
(license license:gpl2+))))
+(define-public symbiyosys
+ (package
+ (name "symbiyosys")
+ (version "0.52")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/YosysHQ/sby/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "06nhkmnl9ymp1wxapc0lnj82knj5q43x0s2rmfshwvs4cijzqm7f"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ #:test-target "test"
+ #:make-flags #~(list (string-append "PREFIX=" #$output))
+ #:phases #~(modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'build)
+ ;; info: requires furo-ys, not yet available
+ ;; (add-after 'install 'build-info
+ ;; (lambda _
+ ;; (invoke "make" "-C" "docs" "info")))
+ (add-before 'check 'create-git
+ (lambda _
+ (invoke "git" "init"))) ;check expects a git repo
+ (add-after 'create-git 'patch-/usr/bin/env
+ (lambda _
+ (substitute* "sbysrc/sby_core.py"
+ (("\"/usr/bin/env\", ")
+ ""))
+ (substitute* "sbysrc/sby.py"
+ (("/usr/bin/env python")
+ (which "python3")))))
+ ;; remove tests which fail
+ (add-after 'patch-/usr/bin/env 'delete-check-failures
+ (lambda _
+ (delete-file "tests/keepgoing/keepgoing_multi_step.sby")
+ (delete-file-recursively "docs/examples/demos")
+ (delete-file
+ "tests/regression/aim_vs_smt2_nonzero_start_offset.sby"))))))
+ (inputs (list yosys abc))
+ (native-inputs (list
+ ;; python-sphinx python-sphinx-argparse texinfo ; info
+ python
+ python-click
+ python-xmlschema
+ git-minimal/pinned
+ boolector
+ yices
+ z3))
+ (home-page "https://github.com/YosysHQ/sby/")
+ (synopsis "Formal verification with yosys")
+ (description
+ "SimbyYosys is a front-end program for yosys-based formal hardware verification
+flows.")
+ (license license:isc)))
+
(define-public uhdm
(package
(name "uhdm")
base-commit: 699ce22ed812cf8cfcdd8d0341829f8fac2c864a
--
2.49.0
This bug report was last modified 83 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.