unison: install unison-fsmonitor

It is necessary for `unison -ui text -repeat watch` to work.
This commit is contained in:
Orivej Desh 2017-02-03 23:37:31 +00:00
parent c54f47b013
commit 5b83857bee

View File

@ -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 "");