diff options
author | Luca Cirrottola <luca.cirro@gmail.com> | 2025-05-27 23:45:17 +0200 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-06-26 12:25:37 +0100 |
commit | 4ba46078507c54a2bbe22df1485b2564a6d16cd7 (patch) | |
tree | 8eec2f67211357964ffb3047cbdcdbe14919abdd | |
parent | f14f4287012d5fee636012931d084c1b3d91055d (diff) |
gnu: Add gotcha.
* gnu/packages/mpi.scm (gotcha): New variable.
Change-Id: Ia78f11ba482cacc0702092ac30462c3d5cc248f7
Reviewed-by: Ludovic Courtès <ludo@gnu.org>
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r-- | gnu/packages/mpi.scm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm index 796170960e..99fcedd334 100644 --- a/gnu/packages/mpi.scm +++ b/gnu/packages/mpi.scm @@ -30,14 +30,17 @@ #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix deprecation) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages bison) + #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages documentation) #:use-module (gnu packages fabric-management) @@ -60,6 +63,7 @@ #:use-module (gnu packages python) #:use-module (gnu packages ssh) #:use-module (gnu packages valgrind) + #:use-module (gnu packages version-control) #:use-module (srfi srfi-1) #:use-module (ice-9 match)) @@ -691,6 +695,38 @@ modular framework for other derived implementations.") phases))) (synopsis "Implementation of the Message Passing Interface (MPI) for OmniPath"))) +(define-public gotcha + (package + (name "gotcha") + (version "1.0.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/LLNL/GOTCHA") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "172h70x7mpyik2rbqc4zynfi7kpjfcxpazcwnjnm3d9wsmlwb1z5")))) + (build-system cmake-build-system) + (native-inputs + ;; "git" is needed by test/unit/CMakeLists.txt but is not actually used + ;; if "check" is provided and DEPENDENCIES_PREINSTALLED is true. + (list git + check)) + (arguments + (list #:configure-flags #~'("-DGOTCHA_ENABLE_TESTS=on" + "-DDEPENDENCIES_PREINSTALLED=true"))) + (home-page "https://github.com/LLNL/GOTCHA") + (synopsis "Wrapping function calls in shared libraries") + (description + "Gotcha is a library that wraps functions. Tools can use gotcha to +install hooks into other libraries, for example putting a wrapper function +around libc's malloc. It is similar to @code{LD_PRELOAD}, but operates via a +programmable API.") + ;; See <LGPL> file for preamble notice. + (license license:lgpl2.1))) + (define (make-scorep mpi) (package (name (string-append "scorep-" (package-name mpi))) |