git.iko.soy/typeable/nixpkgs
on master help sign in
nextcloud-client: provide optional gnome-keyring integration

`qtkeyring` can use `gnome-keyring`, but it needs some help to find it. I have not enabled this by default because not everyone who uses this will want to pull in GNOME dependencies.

commite828dcb5cd4ae321dde053d2eb3a24992b42f167 authorRuben Maher <r@rkm.id.au> dateWed 13 Sep 2017, 08:59 (9 years ago) parent4ce18c8
1 file changed+9−2
pkgs/applications/networking/nextcloud-client/default.nix+9−2
pkgs/applications/networking/nextcloud-client/default.nix+9−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchgit, cmake, pkgconfig, qtbase, qtwebkit, qtkeychain, sqlite
2−, inotify-tools }:
2+, inotify-tools, withGnomeKeyring ? false, makeWrapper, libgnome_keyring }:
33
44stdenv.mkDerivation rec {
55 name = "nextcloud-client-${version}";
@@ -13,8 +13,10 @@ stdenv.mkDerivation rec {
1313 };
1414
1515 nativeBuildInputs = [ pkgconfig cmake ];
16+
1617 buildInputs = [ qtbase qtwebkit qtkeychain sqlite ]
17− ++ stdenv.lib.optional stdenv.isLinux inotify-tools;
18+ ++ stdenv.lib.optional stdenv.isLinux inotify-tools
19+ ++ stdenv.lib.optional withGnomeKeyring makeWrapper;
1820
1921 enableParallelBuilding = true;
2022
@@ -31,6 +33,11 @@ stdenv.mkDerivation rec {
3133 "-DINOTIFY_INCLUDE_DIR=${inotify-tools}/include"
3234 ];
3335
36+ postInstall = stdenv.lib.optionalString (withGnomeKeyring) ''
37+ wrapProgram "$out/bin/nextcloud" \
38+ --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ libgnome_keyring ]}
39+ '';
40+
3441 meta = with stdenv.lib; {
3542 description = "Nextcloud themed desktop client";
3643 homepage = https://nextcloud.com;