aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2019-09-03 23:10:30 +0200
committerJulien Lepiller <julien@lepiller.eu>2019-09-03 23:32:38 +0200
commit1fe01b70112986374ae184610127719154cc67ec (patch)
tree7d1afd481ce25a3bb4d7787aa7ec2edbab2d6132
parent1a0d41b34dd18828d5f38f3d8e31517df6aa0f57 (diff)
downloadpatches-1fe01b70112986374ae184610127719154cc67ec.tar
patches-1fe01b70112986374ae184610127719154cc67ec.tar.gz
gnu: ocaml-fileutils: Update to 0.6.0.
* gnu/packages/ocaml.scm (ocaml-fileutils): Update to 0.6.0.
-rw-r--r--gnu/packages/ocaml.scm31
1 files changed, 26 insertions, 5 deletions
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 32e2a6e69a..52f7a42e93 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2408,17 +2408,38 @@ compatibility with older compiler to use these new features in their code.")
(define-public ocaml-fileutils
(package
(name "ocaml-fileutils")
- (version "0.5.3")
+ (version "0.6.0")
(source (origin
- (method url-fetch)
- (uri (ocaml-forge-uri name version 1728))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gildor478/ocaml-fileutils")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "1rc4cqlvdhbs55i85zfbfhz938fsy4fj6kwlkfm3ra7bpwn8bmpd"))))
+ "06gxbqfssl16xc8y4d34wpm0mwfr0jgph4lmlwfmgazyggnmvc7m"))))
(build-system ocaml-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'set-topfind
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; add the line #directory ".." at the top of each file
+ ;; using #use "topfind";; to be able to find topfind
+ (let* ((findlib-path (assoc-ref inputs "findlib"))
+ (findlib-libdir
+ (string-append findlib-path "/lib/ocaml/site-lib")))
+ (substitute* "setup.ml"
+ (("#use \"topfind\";;" all)
+ (string-append "#directory \"" findlib-libdir "\"\n"
+ all))))
+ #t)))))
+ (propagated-inputs
+ `(("ocaml-stdlib-shims" ,ocaml-stdlib-shims)))
(native-inputs
`(("ocamlbuild" ,ocamlbuild)
- ("ounit" ,ocaml-ounit)))
+ ("ocaml-oasis" ,ocaml-oasis)
+ ("ocaml-ounit" ,ocaml-ounit)))
(home-page "http://ocaml-fileutils.forge.ocamlcore.org")
(synopsis "Pure OCaml functions to manipulate real file and filename")
(description "Library to provide pure OCaml functions to manipulate real