From 8dc37e181ce56a1015dd47ab9dc869de75e0a1da Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Tue, 30 Sep 2025 16:42:02 +0200 Subject: [PATCH] gnu: osvvm: Implement checks. * gnu/packages/electronics.scm (osvvm)[arguments]<#:phases>: Add check. [native-inputs]: Add nvc, tcl, tcllib, and which. Change-Id: Ia3567f908834c29093d36aa50aebcfae3fb98b18 Signed-off-by: Maxim Cournoyer --- gnu/packages/electronics.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index 17fdf6870284b71ca376d8076c5d14d4ae9b3cb9..b8349aa8ce4edc353fd51e9475f01c1b714fa7ce 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -1355,7 +1355,16 @@ GUI for sigrok.") ;; Default conflicts with read-only /gnu/store. (substitute* "osvvm/OsvvmVhdlSettings.pro" (("\\[FindOsvvmSettingsDirectory\\]") - " \"\" "))))))) + " \"\" ")))) + (add-after 'fix-scripts 'check + (lambda _ + (setenv "OSVVM_DIR" (getcwd)) + (setenv "OSVVM_MUST_BUILD" (getcwd)) + (invoke "tclsh" + (string-append #$(this-package-native-input "nvc") + "/test/test-osvvm.tcl"))))))) + (native-inputs + (list nvc tcl tcllib which)) (native-search-paths (list (search-path-specification (variable "OSVVM")