From 5b83857beeba0bb35a59b527d047a576f59cbf31 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Fri, 3 Feb 2017 23:37:31 +0000 Subject: [PATCH] unison: install unison-fsmonitor It is necessary for `unison -ui text -repeat watch` to work. --- pkgs/applications/networking/sync/unison/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/sync/unison/default.nix b/pkgs/applications/networking/sync/unison/default.nix index 4cd8c998d419..2daa846990a3 100644 --- a/pkgs/applications/networking/sync/unison/default.nix +++ b/pkgs/applications/networking/sync/unison/default.nix @@ -11,9 +11,11 @@ stdenv.mkDerivation (rec { buildInputs = [ ocaml makeWrapper ncurses ]; - preBuild = if enableX11 then '' + preBuild = (if enableX11 then '' sed -i "s|\(OCAMLOPT=.*\)$|\1 -I $(echo "${lablgtk}"/lib/ocaml/*/site-lib/lablgtk2)|" Makefile.OCaml - '' else ""; + '' else "") + '' + echo -e '\ninstall:\n\tcp $(FSMONITOR)$(EXEC_EXT) $(INSTALLDIR)' >> fsmonitor/linux/Makefile + ''; makeFlags = "INSTALLDIR=$(out)/bin/" + (if enableX11 then " UISTYLE=gtk2" else "") + (if ! ocaml.nativeCompilers then " NATIVE=false" else "");