From e02f936b2766ba7d8b6229444c2268e703deb0c6 Mon Sep 17 00:00:00 2001 From: Ruben Maher Date: Tue, 12 Sep 2017 09:04:17 +0930 Subject: [PATCH] nextcloud-client: add inotify dependency when building on linux This allows for more efficient change detection. --- .../applications/networking/nextcloud-client/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/nextcloud-client/default.nix b/pkgs/applications/networking/nextcloud-client/default.nix index a3dce871c4bb..c42fdf6fc1e6 100644 --- a/pkgs/applications/networking/nextcloud-client/default.nix +++ b/pkgs/applications/networking/nextcloud-client/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchgit, cmake, pkgconfig, qtbase, qtwebkit, qtkeychain, sqlite }: +{ stdenv, fetchgit, cmake, pkgconfig, qtbase, qtwebkit, qtkeychain, sqlite +, inotify-tools }: stdenv.mkDerivation rec { name = "nextcloud-client-${version}"; @@ -12,7 +13,8 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ pkgconfig cmake ]; - buildInputs = [ qtbase qtwebkit qtkeychain sqlite ]; + buildInputs = [ qtbase qtwebkit qtkeychain sqlite ] + ++ stdenv.lib.optional stdenv.isLinux inotify-tools; dontUseCmakeBuildDir = true; @@ -22,6 +24,9 @@ stdenv.mkDerivation rec { "-UCMAKE_INSTALL_LIBDIR" "-DCMAKE_BUILD_TYPE=Release" "-DOEM_THEME_DIR=${src}/nextcloudtheme" + ] ++ stdenv.lib.optionals stdenv.isLinux [ + "-DINOTIFY_LIBRARY=${inotify-tools}/lib/libinotifytools.so" + "-DINOTIFY_INCLUDE_DIR=${inotify-tools}/include" ]; meta = with stdenv.lib; {