summary refs log tree commit diff
path: root/pkgs/applications/networking/nextcloud-client
diff options
context:
space:
mode:
authorRuben Maher <r@rkm.id.au>2017-09-12 09:04:17 +0930
committerRuben Maher <r@rkm.id.au>2017-09-14 08:42:55 +0930
commite02f936b2766ba7d8b6229444c2268e703deb0c6 (patch)
tree7a735cfcccf8795a5fdf5289941a6fc086efadd4 /pkgs/applications/networking/nextcloud-client
parentebb6488e74f17dce5c54348e98797bdda2912650 (diff)
downloadnixlib-e02f936b2766ba7d8b6229444c2268e703deb0c6.tar
nixlib-e02f936b2766ba7d8b6229444c2268e703deb0c6.tar.gz
nixlib-e02f936b2766ba7d8b6229444c2268e703deb0c6.tar.bz2
nixlib-e02f936b2766ba7d8b6229444c2268e703deb0c6.tar.lz
nixlib-e02f936b2766ba7d8b6229444c2268e703deb0c6.tar.xz
nixlib-e02f936b2766ba7d8b6229444c2268e703deb0c6.tar.zst
nixlib-e02f936b2766ba7d8b6229444c2268e703deb0c6.zip
nextcloud-client: add inotify dependency when building on linux
This allows for more efficient change detection.
Diffstat (limited to 'pkgs/applications/networking/nextcloud-client')
-rw-r--r--pkgs/applications/networking/nextcloud-client/default.nix9
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 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; {