diff mbox

gnu: unison: Install unison-fsmonitor.

Message ID 20160611042421.2ecb759a@orivej.orivej.org
State New
Headers show

Commit Message

Orivej Desh June 11, 2016, 4:24 a.m. UTC
* gnu/packages/ocaml.scm (unison): Install unison-fsmonitor for "unison -repeat watch" mode.
---
 gnu/packages/ocaml.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comments

Ludovic Courtès June 12, 2016, 8:38 p.m. UTC | #1
Orivej Desh <orivej@gmx.fr> skribis:

> * gnu/packages/ocaml.scm (unison): Install unison-fsmonitor for "unison -repeat watch" mode.

I moved the explanation above as a comment in the ‘install-fsmonitor’
phase and applied it.  Thank you!

Ludo’.
diff mbox

Patch

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index a0a4b93..de2b7c6 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -590,8 +590,13 @@  libpanel, librsvg and quartz.")
                  (mkdir-p bin)
                  (setenv "HOME" out) ; forces correct INSTALLDIR in Makefile
                  #t)))
+           (add-after 'install 'install-fsmonitor
+             (lambda* (#:key outputs #:allow-other-keys)
+               (let* ((out (assoc-ref outputs "out"))
+                      (bin (string-append out "/bin")))
+                 (install-file "src/unison-fsmonitor" bin))))
            (add-after 'install 'install-doc
-             (lambda* (#:key inputs outputs #:allow-other-keys)
+             (lambda* (#:key outputs #:allow-other-keys)
                (let ((doc (string-append (assoc-ref outputs "doc")
                                          "/share/doc/unison")))
                  (mkdir-p doc)