3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/nextcloud-client/wrapper.nix

15 lines
467 B
Nix
Raw Normal View History

{ lib, nextcloud-client, makeWrapper, symlinkJoin, withGnomeKeyring ? false, libgnome-keyring }:
if (!withGnomeKeyring) then nextcloud-client else symlinkJoin {
name = "${nextcloud-client.name}-with-gnome-keyring";
paths = [ nextcloud-client ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram "$out/bin/nextcloud" \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libgnome-keyring ]}
'';
inherit (nextcloud-client) meta;
}