gnu: icestorm: Improve style.

* gnu/packages/electronics.scm (icestorm): Improve style.

Change-Id: I54af740aa866cd3d0f5a02c76ca30c8cf293cb63
Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
This commit is contained in:
Cayetano Santos 2025-09-23 14:54:17 +02:00 committed by Maxim Cournoyer
parent 4660273f00
commit 2ff3cdf8aa
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -424,17 +424,14 @@ For synthesis, the compiler generates netlists in the desired format.")
(list (list
#:tests? #f ;no tests #:tests? #f ;no tests
#:make-flags #:make-flags
#~(list (string-append "CC=" #~(list (string-append "CC=" #$(cc-for-target))
#$(cc-for-target)) (string-append "CXX=" #$(cxx-for-target))
(string-append "CXX=" (string-append "PREFIX=" #$output)
#$(cxx-for-target))
(string-append "PREFIX="
#$output)
"ICEPROG=1") "ICEPROG=1")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'fix-usr-local (add-after 'unpack 'fix-usr-local
(lambda* (#:key outputs #:allow-other-keys) (lambda _
(substitute* "config.mk" (substitute* "config.mk"
(("/usr/local") (("/usr/local")
#$output)) #$output))
@ -448,7 +445,7 @@ For synthesis, the compiler generates netlists in the desired format.")
(("/usr/local") (("/usr/local")
#$output)))) #$output))))
(add-after 'build 'make-info (add-after 'build 'make-info
(lambda* (#:key outputs #:allow-other-keys) (lambda _
(with-directory-excursion "docs" (with-directory-excursion "docs"
(invoke "make" "info") (invoke "make" "info")
(install-file "build/texinfo/projecticestorm.info" (install-file "build/texinfo/projecticestorm.info"
@ -458,12 +455,14 @@ For synthesis, the compiler generates netlists in the desired format.")
(string-append #$output (string-append #$output
"/share/info/projecticestorm-figures"))))) "/share/info/projecticestorm-figures")))))
(delete 'configure)))) (delete 'configure))))
(inputs (list libftdi)) (inputs
(native-inputs (list pkg-config (list libftdi))
python-minimal (native-inputs
python-sphinx-rtd-theme (list pkg-config
python-sphinxcontrib-svg2pdfconverter python-minimal
texinfo)) python-sphinx-rtd-theme
python-sphinxcontrib-svg2pdfconverter
texinfo))
(home-page "https://prjicestorm.readthedocs.io/") (home-page "https://prjicestorm.readthedocs.io/")
(synopsis "Bitstream tools for Lattice iCE40 FPGAs") (synopsis "Bitstream tools for Lattice iCE40 FPGAs")
(description (description