diff options
author | Cayetano Santos <csantosb@inventati.org> | 2025-04-10 12:32:59 +0200 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-04-22 23:44:14 +0900 |
commit | c8194a529724721e2b96e0fe259cd92b63ff57aa (patch) | |
tree | 11f4d0d28410f94e8d4a63979ae2ac08aa228d98 | |
parent | 2183c962fd0da0218ed4ffa989ee6b7bb1b0dccc (diff) | |
download | guix-c8194a529724721e2b96e0fe259cd92b63ff57aa.tar.gz guix-c8194a529724721e2b96e0fe259cd92b63ff57aa.zip |
gnu: icestorm: Update to 0.0-5.3cdcf4b.
* gnu/packages/fpga.scm (icestorm): Update to 0.0-5.3cdcf4b.
[source]: Update URL.
[arguments] <#:phases> {make-info}: New phase.
{fix-usr-local}: Update substitutions.
<#:tests>: Update comment.
<#:make-flags>: Update CC, CXX and PREFIX variables.
[native-inputs]: Use new style. Add texinfo, python-sphinx and
python-sphinx-rtd-theme.
[homepage]: Update URL.
[description]: Improve.
Change-Id: I545ac91c94a97989c3a1494479d36cb5bb46930d
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
-rw-r--r-- | gnu/packages/fpga.scm | 107 |
1 files changed, 64 insertions, 43 deletions
diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index abd3859c08..e1043efc48 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -75,7 +75,9 @@ #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages readline) + #:use-module (gnu packages sphinx) #:use-module (gnu packages tcl) + #:use-module (gnu packages texinfo) #:use-module (gnu packages toolkits) #:use-module (gnu packages version-control)) @@ -269,49 +271,68 @@ For synthesis, the compiler generates netlists in the desired format.") (synopsis "FPGA Verilog RTL synthesizer (Clang variant)"))) (define-public icestorm - (let ((commit "2bc541743ada3542c6da36a50e66303b9cbd2059") - (revision "4")) - (package - (name "icestorm") - (version (git-version "0.0" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/cliffordwolf/icestorm") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0d0ibdq3rzmjcbv97h4b9wgq8ikvgwlfw60spi2w81mis317lis8")))) - (build-system gnu-build-system) - (arguments - `(#:tests? #f ; no unit tests that don't need an FPGA exist. - #:make-flags (list "CC=gcc" "CXX=g++" - (string-append "PREFIX=" (assoc-ref %outputs "out"))) - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'remove-usr-local - (lambda _ - (substitute* "iceprog/Makefile" - (("-I/usr/local/include") "") - (("-L/usr/local/lib") "")) - #t)) - (add-after 'remove-usr-local 'fix-usr-local - (lambda* (#:key outputs #:allow-other-keys) - (substitute* "icebox/icebox_vlog.py" - (("/usr/local/share") (string-append (assoc-ref outputs "out") "/share"))) - #t)) - (delete 'configure)))) - (inputs - (list libftdi)) - (native-inputs - `(("python-3" ,python) - ("pkg-config" ,pkg-config))) - (home-page "https://www.clifford.at/icestorm/") - (synopsis "Project IceStorm - Lattice iCE40 FPGAs bitstream tools") - (description "Project IceStorm - Lattice iCE40 FPGAs Bitstream Tools. -Includes the actual FTDI connector.") - (license license:isc)))) + (let ((commit "3cdcf4b009bb8681ab7e2e09d65043f04334b60e") + (revision "5")) + (package + (name "icestorm") + (version (git-version "0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/YosysHQ/icestorm/") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ygp6cj7grlnyji572kx215p2mw4crllskif9g795f390bp38g68")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ;avoid a cyclic dependency with nextpr-ice40 + #:make-flags + #~(list (string-append "CC=" + #$(cc-for-target)) + (string-append "CXX=" + #$(cxx-for-target)) + (string-append "PREFIX=" + #$output) + "ICEPROG=1") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-usr-local + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "icepack/Makefile" + (("/usr/local") + #$output)) + (substitute* "icebox/Makefile" + (("/usr/local") + #$output)) + (substitute* "icebox/icebox_vlog.py" + (("/usr/local") + #$output)))) + (add-after 'build 'make-info + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion "docs" + (invoke "make" "info") + (install-file "build/texinfo/projecticestorm.info" + (string-append #$output "/share/info")) + (copy-recursively "build/texinfo/projecticestorm-figures" + (string-append #$output + "/share/info/projecticestorm-figures"))))) + (delete 'configure)))) + (inputs (list libftdi)) + (native-inputs (list pkg-config + python + python-sphinx + python-sphinx-rtd-theme + texinfo)) + (home-page "https://prjicestorm.readthedocs.io/") + (synopsis "Bitstream tools for Lattice iCE40 FPGAs") + (description + "Project IceStorm aims at documenting the bitstream format of +Lattice iCE40 FPGAs and providing simple tools for analyzing and creating bitstream +files.") + (license license:isc)))) (define-public nextpnr-ice40 (let* ((version "0.7") |