syncthing-inotify: fix building on darwin

This commit is contained in:
Ioannis Koutras 2016-11-01 14:54:21 +02:00
parent 5f60295b02
commit 09465c9f7a

View File

@ -25,6 +25,8 @@ buildGoPackage rec {
substitute $src/etc/linux-systemd/user/syncthing-inotify.service \
$bin/etc/systemd/user/syncthing-inotify.service \
--replace /usr/bin/syncthing-inotify $bin/bin/syncthing-inotify
'' + stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -delete_rpath $out/lib -add_rpath $bin $bin/bin/syncthing-inotify
'';
meta = with stdenv.lib; {