summary refs log tree commit diff
path: root/pkgs/applications/networking/sync/unison/default.nix
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-02-03 23:37:31 +0000
committerOrivej Desh <orivej@gmx.fr>2017-02-03 23:37:31 +0000
commit5b83857beeba0bb35a59b527d047a576f59cbf31 (patch)
tree768d8793d60314170ad67703b943125b528629c6 /pkgs/applications/networking/sync/unison/default.nix
parentc54f47b0132e34c7152c764897011b40863255d5 (diff)
downloadnixpkgs-5b83857beeba0bb35a59b527d047a576f59cbf31.tar
nixpkgs-5b83857beeba0bb35a59b527d047a576f59cbf31.tar.gz
nixpkgs-5b83857beeba0bb35a59b527d047a576f59cbf31.tar.bz2
nixpkgs-5b83857beeba0bb35a59b527d047a576f59cbf31.tar.lz
nixpkgs-5b83857beeba0bb35a59b527d047a576f59cbf31.tar.xz
nixpkgs-5b83857beeba0bb35a59b527d047a576f59cbf31.tar.zst
nixpkgs-5b83857beeba0bb35a59b527d047a576f59cbf31.zip
unison: install unison-fsmonitor
It is necessary for `unison -ui text -repeat watch` to work.
Diffstat (limited to 'pkgs/applications/networking/sync/unison/default.nix')
-rw-r--r--pkgs/applications/networking/sync/unison/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/networking/sync/unison/default.nix b/pkgs/applications/networking/sync/unison/default.nix
index 4cd8c998d41..2daa846990a 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 "");