aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon South <simon@simonsouth.net>2023-01-27 15:34:32 -0500
committerDanny Milosavljevic <dannym@friendly-machines.com>2024-12-22 12:48:00 +0100
commit43ed3520e16a4bd69cbe7a9e71021622bf7caf81 (patch)
tree663dcac64bb24798841d4bd091f7a424163f24f2
parent06aec32989720da61f80a768cc7442c19f586d95 (diff)
downloadguix-43ed3520e16a4bd69cbe7a9e71021622bf7caf81.tar.gz
guix-43ed3520e16a4bd69cbe7a9e71021622bf7caf81.zip
gnu: nextpnr-ice40: Fix generated version string.
* gnu/packages/fpga.scm (nextpnr-ice40)[arguments]<#:configure-flags>: Add "-DCURRENT_GIT_VERSION". Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
-rw-r--r--gnu/packages/fpga.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm
index a81c6aab26..8076c0fa44 100644
--- a/gnu/packages/fpga.scm
+++ b/gnu/packages/fpga.scm
@@ -311,6 +311,8 @@ Includes the actual FTDI connector.")
(list #:configure-flags
#~(list "-DARCH=ice40"
"-DBUILD_TESTS=ON"
+ (string-append "-DCURRENT_GIT_VERSION="
+ #$(string-take commit 8))
(string-append "-DICEBOX_ROOT="
#$(this-package-input "icestorm")
"/share/icebox"))))