2016-10-21 11:39:43 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, wrapGAppsHook
|
2016-10-02 20:30:10 +02:00
|
|
|
, glib, gtk3, gettext, libxkbfile, libgnome_keyring, libX11
|
|
|
|
, freerdp, libssh, libgcrypt, gnutls, makeDesktopItem
|
|
|
|
, pcre, webkitgtk, libdbusmenu-gtk3, libappindicator-gtk3
|
|
|
|
, libvncserver, libpthreadstubs, libXdmcp, libxkbcommon
|
|
|
|
, libsecret, spice_protocol, spice_gtk, epoxy, at_spi2_core
|
2017-01-09 09:57:39 +01:00
|
|
|
, openssl, gsettings_desktop_schemas
|
2016-12-25 20:04:47 +01:00
|
|
|
# The themes here are soft dependencies; only icons are missing without them.
|
|
|
|
, hicolor_icon_theme, adwaita-icon-theme
|
|
|
|
}:
|
2013-11-05 12:47:30 +01:00
|
|
|
|
|
|
|
let
|
2017-02-05 07:05:31 +01:00
|
|
|
version = "1.2.0-rcgit.17";
|
2017-01-09 09:57:39 +01:00
|
|
|
|
2013-11-05 12:47:30 +01: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 16:30:13 +02:00
|
|
|
|
2017-02-05 07:05:31 +01:00
|
|
|
in stdenv.mkDerivation {
|
2012-07-02 16:30:13 +02:00
|
|
|
name = "remmina-${version}";
|
|
|
|
|
2016-10-02 20:30:10 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FreeRDP";
|
|
|
|
repo = "Remmina";
|
|
|
|
rev = "v${version}";
|
2017-02-05 07:05:31 +01:00
|
|
|
sha256 = "1vfg8sfpj83ircp7ny6xsbn2ba5xbp3xrdl5wwyfcg1zrpdmi7f1";
|
2012-07-02 16:30:13 +02:00
|
|
|
};
|
|
|
|
|
2017-01-09 09:57:39 +01:00
|
|
|
buildInputs = [ cmake pkgconfig wrapGAppsHook gsettings_desktop_schemas
|
2016-10-02 20:30:10 +02:00
|
|
|
glib gtk3 gettext libxkbfile libgnome_keyring libX11
|
2017-02-05 07:05:31 +01:00
|
|
|
freerdp libssh libgcrypt gnutls
|
2016-10-02 20:30:10 +02:00
|
|
|
pcre webkitgtk libdbusmenu-gtk3 libappindicator-gtk3
|
|
|
|
libvncserver libpthreadstubs libXdmcp libxkbcommon
|
|
|
|
libsecret spice_protocol spice_gtk epoxy at_spi2_core
|
2016-12-25 20:04:47 +01:00
|
|
|
openssl hicolor_icon_theme adwaita-icon-theme ];
|
2012-07-02 16:30:13 +02:00
|
|
|
|
2017-02-05 07:05:31 +01: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 10:00:33 +01:00
|
|
|
|
2016-10-21 11:39:43 +02:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix LD_LIBRARY_PATH : "${libX11.out}/lib"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2012-07-02 16:30:13 +02:00
|
|
|
postInstall = ''
|
2013-11-05 12:47:30 +01:00
|
|
|
mkdir -pv $out/share/applications
|
|
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
2012-07-02 16:30:13 +02:00
|
|
|
'';
|
|
|
|
|
2013-11-10 18:25:12 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2012-07-02 16:30:13 +02:00
|
|
|
homepage = "http://remmina.sourceforge.net/";
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Remote desktop client written in GTK+";
|
2012-07-02 16:30:13 +02:00
|
|
|
maintainers = [];
|
2013-11-10 18:25:12 +01:00
|
|
|
platforms = platforms.linux;
|
2012-07-02 16:30:13 +02:00
|
|
|
};
|
|
|
|
}
|