2018-06-16 18:09:12 +01:00
|
|
|
{ stdenv, fetchFromGitLab, cmake, pkgconfig, wrapGAppsHook
|
2018-02-25 02:23:58 +00:00
|
|
|
, glib, gtk3, gettext, libxkbfile, libgnome-keyring, libX11
|
2016-10-02 19:30:10 +01:00
|
|
|
, freerdp, libssh, libgcrypt, gnutls, makeDesktopItem
|
|
|
|
, pcre, webkitgtk, libdbusmenu-gtk3, libappindicator-gtk3
|
|
|
|
, libvncserver, libpthreadstubs, libXdmcp, libxkbcommon
|
2018-02-25 02:23:58 +00:00
|
|
|
, libsecret, spice-protocol, spice-gtk, epoxy, at-spi2-core
|
2018-06-16 18:09:12 +01:00
|
|
|
, openssl, gsettings-desktop-schemas, json-glib
|
2016-12-25 19:04:47 +00:00
|
|
|
# The themes here are soft dependencies; only icons are missing without them.
|
2018-02-25 02:23:58 +00:00
|
|
|
, hicolor-icon-theme, adwaita-icon-theme
|
2016-12-25 19:04:47 +00:00
|
|
|
}:
|
2013-11-05 11:47:30 +00:00
|
|
|
|
|
|
|
let
|
2018-06-16 18:09:12 +01:00
|
|
|
version = "1.2.30.1";
|
2017-01-09 08:57:39 +00:00
|
|
|
|
2013-11-05 11:47:30 +00:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "remmina";
|
|
|
|
desktopName = "Remmina";
|
|
|
|
genericName = "Remmina Remote Desktop Client";
|
|
|
|
exec = "remmina";
|
|
|
|
icon = "remmina";
|
|
|
|
comment = "Connect to remote desktops";
|
|
|
|
categories = "GTK;GNOME;X-GNOME-NetworkSettings;Network;";
|
|
|
|
};
|
2012-07-02 15:30:13 +01:00
|
|
|
|
2017-02-05 06:05:31 +00:00
|
|
|
in stdenv.mkDerivation {
|
2012-07-02 15:30:13 +01:00
|
|
|
name = "remmina-${version}";
|
|
|
|
|
2018-06-16 18:09:12 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "Remmina";
|
2016-10-02 19:30:10 +01:00
|
|
|
repo = "Remmina";
|
|
|
|
rev = "v${version}";
|
2018-06-16 18:09:12 +01:00
|
|
|
sha256 = "1jz20yv84a8m9gm9fsz0jii8ag90v1scmbkkx9gk38ax5il7ilvn";
|
2012-07-02 15:30:13 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ cmake wrapGAppsHook gsettings-desktop-schemas
|
|
|
|
glib gtk3 gettext libxkbfile libgnome-keyring libX11
|
2017-02-05 06:05:31 +00:00
|
|
|
freerdp libssh libgcrypt gnutls
|
2016-10-02 19:30:10 +01:00
|
|
|
pcre webkitgtk libdbusmenu-gtk3 libappindicator-gtk3
|
|
|
|
libvncserver libpthreadstubs libXdmcp libxkbcommon
|
2018-02-25 02:23:58 +00:00
|
|
|
libsecret spice-protocol spice-gtk epoxy at-spi2-core
|
2018-06-16 18:09:12 +01:00
|
|
|
openssl hicolor-icon-theme adwaita-icon-theme json-glib ];
|
2012-07-02 15:30:13 +01:00
|
|
|
|
2017-02-05 06:05:31 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_VTE=OFF"
|
|
|
|
"-DWITH_TELEPATHY=OFF"
|
|
|
|
"-DWITH_AVAHI=OFF"
|
|
|
|
"-DFREERDP_LIBRARY=${freerdp}/lib/libfreerdp2.so"
|
|
|
|
"-DFREERDP_CLIENT_LIBRARY=${freerdp}/lib/libfreerdp-client2.so"
|
|
|
|
"-DFREERDP_WINPR_LIBRARY=${freerdp}/lib/libwinpr2.so"
|
|
|
|
"-DWINPR_INCLUDE_DIR=${freerdp}/include/winpr2"
|
|
|
|
];
|
2013-11-05 09:00:33 +00:00
|
|
|
|
2016-10-21 10:39:43 +01:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix LD_LIBRARY_PATH : "${libX11.out}/lib"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2012-07-02 15:30:13 +01:00
|
|
|
postInstall = ''
|
2013-11-05 11:47:30 +00:00
|
|
|
mkdir -pv $out/share/applications
|
|
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
2012-07-02 15:30:13 +01:00
|
|
|
'';
|
|
|
|
|
2013-11-10 17:25:12 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2018-06-16 18:09:12 +01:00
|
|
|
homepage = https://gitlab.com/Remmina/Remmina;
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Remote desktop client written in GTK+";
|
2018-06-16 18:09:12 +01:00
|
|
|
maintainers = with maintainers; [ melsigl ryantm ];
|
2013-11-10 17:25:12 +00:00
|
|
|
platforms = platforms.linux;
|
2012-07-02 15:30:13 +01:00
|
|
|
};
|
|
|
|
}
|