Skip to content

Commit

Permalink
nextcloud-client: add inotify dependency when building on linux
Browse files Browse the repository at this point in the history
This allows for more efficient change detection.
  • Loading branch information
eqyiel committed Sep 13, 2017
1 parent ebb6488 commit e02f936
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkgs/applications/networking/nextcloud-client/default.nix
Original file line number Diff line number Diff line change
@@ -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}";
Expand All @@ -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;

Expand All @@ -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; {
Expand Down

0 comments on commit e02f936

Please sign in to comment.