mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add json-for-vhdl.
* gnu/packages/electronics.scm (json-for-vhdl): New variable. Change-Id: Ia43b8332a882ecd3499a63ea9855e10d65fbac77 Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
This commit is contained in:
parent
339d7793bc
commit
9a830d118a
1 changed files with 45 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
|||
(define-module (gnu packages electronics)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix build-system cmake)
|
||||
#:use-module (guix build-system copy)
|
||||
#:use-module (guix build-system glib-or-gtk)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (guix build-system pyproject)
|
||||
|
@ -145,6 +146,50 @@ individual low-level driver modules.")
|
|||
(home-page "https://www.comedi.org/")
|
||||
(license license:lgpl2.1)))
|
||||
|
||||
(define-public json-for-vhdl
|
||||
;; No tagged releases.
|
||||
(let ((commit "0dc9e317440263cd4941f157f5e5668baa858ec2")
|
||||
(revision "0"))
|
||||
(package
|
||||
(name "json-for-vhdl")
|
||||
(version (git-version "20220905" revision commit)) ;last revision
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/Paebbels/JSON-for-VHDL/")
|
||||
(commit commit)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "1062g2c3dpsb67zhqrn1j04p7jl28g4mcxd6nhrqqfffjsvxkpw9"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:install-plan
|
||||
#~'(("src" "share/json-for-vhdl"
|
||||
#:include ("vhdl")))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; The examples/Encodings_VUnit test requires vhdl builtins.
|
||||
(add-after 'unpack 'fix-check
|
||||
(lambda _
|
||||
(substitute* "tests/VUnit/run.py"
|
||||
(("from_argv\\(\\)")
|
||||
"from_argv()\nvu.add_vhdl_builtins()"))))
|
||||
(add-after 'install 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "python3" "tests/VUnit/run.py" "-v")))))))
|
||||
(native-inputs
|
||||
(list nvc python-minimal python-vunit))
|
||||
(home-page "https://github.com/Paebbels/JSON-for-VHDL/")
|
||||
(synopsis "Parse and query JSON data structures in VHDL")
|
||||
(description
|
||||
"The JSON-for-VHDL library provides a parser to query JSON data
|
||||
structures from external files on disk. It provides a context to be
|
||||
used in the declarative section of design units.")
|
||||
(license license:asl2.0))))
|
||||
|
||||
(define librnd
|
||||
(package
|
||||
(name "librnd")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue