summaryrefslogtreecommitdiff
path: root/gnu/packages/ocaml.scm
diff options
context:
space:
mode:
authorSören Tempel <soeren@soeren-tempel.net>2025-05-03 16:38:26 +0200
committerAndreas Enge <andreas@enge.fr>2025-06-07 16:35:21 +0200
commit966b6b0157c3a66238c63d100f50a8a1e2de0bb5 (patch)
treedb9fcd28e2f34f507e348feb807933632bf15616 /gnu/packages/ocaml.scm
parent4684d6dcd0b9a35ea7ee6d780531ef9fc21f499e (diff)
ocaml: binsec: Wrap program to set OCAMLPATH.
Otherwise, dune plugins cannot be loaded which results in some command line options to not work correctly. For example, binsec --help errors with "The library "binsec.sse.checkct" can't be found in the search paths". To fix this, this patch adds a wrap-programs phase. Fixes: https://issues.guix.gnu.org/69996. * gnu/packages/ocaml.scm (binsec) <arguments>: Add wrap-programs phase. Change-Id: I31a5aaaf1fc49b46f05551f2ef66947699f602c7 Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu/packages/ocaml.scm')
-rw-r--r--gnu/packages/ocaml.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index f6178ffbff..02bc0cd302 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1459,6 +1459,17 @@ Knuth’s LR(1) parser construction technique.")
(sha256
(base32 "1szfqb6rj19w2jdyaxdgy3plhgr7picijf7l4k5qq80kna2h0zm8"))))
(build-system dune-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'wrap-programs
+ (lambda _
+ (let ((ocamlpath
+ `(,(string-append #$output "/lib/ocaml/site-lib")
+ ,@(search-path-as-string->list (getenv "OCAMLPATH")))))
+ (wrap-program (string-append #$output "/bin/" "binsec")
+ `("OCAMLPATH" ":" prefix ,ocamlpath))))))))
+ (inputs (list bash-minimal))
(native-inputs (list gmp ocaml-qcheck ocaml-ounit2))
(propagated-inputs (list dune-site
ocaml-base