diff options
author | Ruben Maher <r@rkm.id.au> | 2017-09-12 09:04:17 +0930 |
---|---|---|
committer | Ruben Maher <r@rkm.id.au> | 2017-09-14 08:42:55 +0930 |
commit | e02f936b2766ba7d8b6229444c2268e703deb0c6 (patch) | |
tree | 7a735cfcccf8795a5fdf5289941a6fc086efadd4 | |
parent | ebb6488e74f17dce5c54348e98797bdda2912650 (diff) |
nextcloud-client: add inotify dependency when building on linux
This allows for more efficient change detection.
-rw-r--r-- | pkgs/applications/networking/nextcloud-client/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/networking/nextcloud-client/default.nix b/pkgs/applications/networking/nextcloud-client/default.nix index a3dce871c4bb8..c42fdf6fc1e6b 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; { |