remmina: make it easier to disable libsecret

This commit is contained in:
zseri 2021-12-04 01:50:40 +01:00
parent 2bd4a5d10d
commit 9bc2cd9866

View file

@ -7,6 +7,7 @@
, openssl, gsettings-desktop-schemas, json-glib, libsodium, webkitgtk, harfbuzz , openssl, gsettings-desktop-schemas, json-glib, libsodium, webkitgtk, harfbuzz
# The themes here are soft dependencies; only icons are missing without them. # The themes here are soft dependencies; only icons are missing without them.
, gnome , gnome
, withLibsecret ? true
}: }:
with lib; with lib;
@ -29,15 +30,16 @@ stdenv.mkDerivation rec {
freerdp libssh libgcrypt gnutls freerdp libssh libgcrypt gnutls
pcre2 libdbusmenu-gtk3 libappindicator-gtk3 pcre2 libdbusmenu-gtk3 libappindicator-gtk3
libvncserver libpthreadstubs libXdmcp libxkbcommon libvncserver libpthreadstubs libXdmcp libxkbcommon
libsecret libsoup spice-protocol spice-gtk libepoxy at-spi2-core libsoup spice-protocol spice-gtk libepoxy at-spi2-core
openssl gnome.adwaita-icon-theme json-glib libsodium webkitgtk openssl gnome.adwaita-icon-theme json-glib libsodium webkitgtk
harfbuzz harfbuzz
]; ] ++ optionals withLibsecret [ libsecret ];
cmakeFlags = [ cmakeFlags = [
"-DWITH_VTE=OFF" "-DWITH_VTE=OFF"
"-DWITH_TELEPATHY=OFF" "-DWITH_TELEPATHY=OFF"
"-DWITH_AVAHI=OFF" "-DWITH_AVAHI=OFF"
"-DWITH_LIBSECRET=${if withLibsecret then "ON" else "OFF"}"
"-DFREERDP_LIBRARY=${freerdp}/lib/libfreerdp2.so" "-DFREERDP_LIBRARY=${freerdp}/lib/libfreerdp2.so"
"-DFREERDP_CLIENT_LIBRARY=${freerdp}/lib/libfreerdp-client2.so" "-DFREERDP_CLIENT_LIBRARY=${freerdp}/lib/libfreerdp-client2.so"
"-DFREERDP_WINPR_LIBRARY=${freerdp}/lib/libwinpr2.so" "-DFREERDP_WINPR_LIBRARY=${freerdp}/lib/libwinpr2.so"