summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2025-09-18 14:32:37 +0900
committer宋文武 <iyzsong@member.fsf.org>2025-09-30 14:04:15 +0800
commitb70e9d6e2a37fdbabc4a6f357c94dec0a2e8872b (patch)
tree14cac29f203e92f67bf3ce64fd36fe6601d07c15 /gnu
parent5ae8ea40b64d7847b0ad0b0ccc333072826bd944 (diff)
gnu: Add fiu.
* gnu/packages/debug.scm (fiu): New variable. Change-Id: I1bd7d80a7ff00a812a5ea1730273b2cd5d6f4343 Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/debug.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm
index 3f7b24aa478..e6f6415d4a7 100644
--- a/gnu/packages/debug.scm
+++ b/gnu/packages/debug.scm
@@ -14,6 +14,7 @@
14;;; Copyright © 2023 Andy Tai <atai@atai.org> 14;;; Copyright © 2023 Andy Tai <atai@atai.org>
15;;; Copyright © 2023 Ricardo Wurmus <rekado@elephly.net> 15;;; Copyright © 2023 Ricardo Wurmus <rekado@elephly.net>
16;;; Copyright © 2024 Raven Hallsby <karl@hallsby.com> 16;;; Copyright © 2024 Raven Hallsby <karl@hallsby.com>
17;;; Copyright © 2025 Nguyễn Gia Phong <mcsinyx@disroot.org>
17;;; 18;;;
18;;; This file is part of GNU Guix. 19;;; This file is part of GNU Guix.
19;;; 20;;;
@@ -1098,3 +1099,34 @@ to aid in debugging.")
1098 (synopsis "Debugger for the Go programming language") 1099 (synopsis "Debugger for the Go programming language")
1099 (description "Delve is a debugger for the Go programming language.") 1100 (description "Delve is a debugger for the Go programming language.")
1100 (license license:expat))) 1101 (license license:expat)))
1102
1103(define-public fiu
1104 (package
1105 (name "fiu")
1106 (version "1.2")
1107 (source
1108 (origin
1109 (method url-fetch)
1110 (uri (string-append "https://blitiri.com.ar/p/libfiu/files/"
1111 version "/libfiu-" version ".tar.gz"))
1112 (sha256
1113 (base32 "0x4ncvi6sv22rqi9x61byybpmch0z1zvpr6p48axkk890ysv6fim"))))
1114 (build-system gnu-build-system)
1115 (arguments
1116 (list #:make-flags #~(list (string-append "PREFIX=" #$output)
1117 (string-append "CC=" #$(cc-for-target))
1118 (string-append "LDFLAGS=-Wl,-rpath="
1119 #$output "/lib"))
1120 #:phases #~(modify-phases %standard-phases
1121 (delete 'configure)
1122 (add-before 'check 'set-env
1123 ;; Shorten paths to sockets in tests.
1124 (lambda _ (setenv "TMPDIR" "/tmp"))))
1125 #:test-target "test"))
1126 (native-inputs (list python)) ; for tests
1127 (synopsis "Fault injector in userspace")
1128 (description "Fiu provides CLI utilities and a C library
1129to mark points of failure inside your code
1130and to enable/disable the failure of those points.")
1131 (home-page "https://blitiri.com.ar/p/libfiu")
1132 (license license:public-domain)))