From 09465c9f7a978752a7a1be7088059c60e6552bd3 Mon Sep 17 00:00:00 2001 From: Ioannis Koutras Date: Tue, 1 Nov 2016 14:54:21 +0200 Subject: [PATCH] syncthing-inotify: fix building on darwin --- pkgs/applications/networking/syncthing/inotify.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/networking/syncthing/inotify.nix b/pkgs/applications/networking/syncthing/inotify.nix index cf630d42756..8d9a813f961 100644 --- a/pkgs/applications/networking/syncthing/inotify.nix +++ b/pkgs/applications/networking/syncthing/inotify.nix @@ -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; {