[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30096] [PATCH 4/6] gnu: Add ocaml-ocb-stubblr.
From: |
Peter Kreye |
Subject: |
[bug#30096] [PATCH 4/6] gnu: Add ocaml-ocb-stubblr. |
Date: |
Sat, 13 Jan 2018 05:25:52 -0600 |
User-agent: |
mu4e 0.9.18; emacs 25.3.1 |
* gnu/packages/ocaml.scm (ocaml-ocb-stubblr): New variable.
---
gnu/packages/ocaml.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 40303c808..a60922c02 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -3814,6 +3814,42 @@ functions that you want to call, then bind directly to
those functions -- all
without writing or generating any C!")
(license license:expat)))
+(define-public ocaml-ocb-stubblr
+ (package
+ (name "ocaml-ocb-stubblr")
+ (version "0.1.1")
+ (home-page "https://github.com/pqwy/ocb-stubblr")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ home-page "/releases/download/v0.1.1/ocb-stubblr-"
+ version ".tbz"))
+ (file-name (string-append name "-" version ".tbz"))
+ (sha256
+ (base32
+ "167b7x1j21mkviq8dbaa0nmk4rps2ilvzwx02igsc2706784z72f"))))
+ (build-system ocaml-build-system)
+ (arguments
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'build
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((libdir (string-append (assoc-ref %build-inputs "findlib")
+ "/lib/ocaml/site-lib")))
+ (zero? (system* "ocaml" "-I" libdir "pkg/pkg.ml" "build"))))))))
+ (inputs
+ `(("findlib" ,ocaml-findlib-1.7.3)
+ ("topkg" ,ocaml-topkg)
+ ("astring" ,ocaml-astring)
+ ("opam", opam)))
+ (synopsis "OCamlbuild plugin for C stubs")
+ (description "Ocb-stubblr is about ten lines of code that you need to
+repeat over, over, over and over again if you are using ocamlbuild to build
+OCaml projects that contain C stubs.")
+ (license license:isc)))
+
(define-public coq-flocq
(package
(name "coq-flocq")
--
2.14.2
[bug#30096] [PATCH 4/6] gnu: Add ocaml-ocb-stubblr.,
Peter Kreye <=
[bug#30096] [PATCH 5/6] gnu: Add ocaml-tsdl., Peter Kreye, 2018/01/13
[bug#30096] [PATCH 6/6] gnu: ocaml-findlib: Update to 1.7.3., Peter Kreye, 2018/01/13