2016-10-21 09:39:43 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, wrapGAppsHook
|
2016-10-02 18:30:10 +00: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 08:57:39 +00:00
|
|
|
, openssl, gsettings_desktop_schemas
|
2016-12-25 19:04:47 +00:00
|
|
|
# The themes here are soft dependencies; only icons are missing without them.
|
|
|
|
, hicolor_icon_theme, adwaita-icon-theme
|
|
|
|
}:
|
2013-11-05 11:47:30 +00:00
|
|
|
|
|
|
|
let
|
2016-10-02 18:30:10 +00:00
|
|
|
version = "1.2.0-rcgit.15";
|
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 14:30:13 +00:00
|
|
|
|
2016-10-02 18:30:10 +00:00
|
|
|
# Latest release of remmina refers to thing that aren't yet in
|
|
|
|
# a FreeRDP release so we need to build one from git source
|
|
|
|
# See also https://github.com/FreeRDP/Remmina/pull/731
|
|
|
|
# Remove when FreeRDP release catches up with this commit
|
|
|
|
freerdp_git = stdenv.lib.overrideDerivation freerdp (args: {
|
|
|
|
name = "freerdp-git-2016-09-30";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FreeRDP";
|
|
|
|
repo = "FreeRDP";
|
|
|
|
rev = "dbb353db92e7a5cb0be3c73aa950fb1113e627ec";
|
|
|
|
sha256 = "1nhm4v6z9var9hasp4bkmhvlrksbdizx95swx19shizfc82s9g4y";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2013-11-05 11:47:30 +00:00
|
|
|
in
|
2012-07-02 14:30:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "remmina-${version}";
|
|
|
|
|
2016-10-02 18:30:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FreeRDP";
|
|
|
|
repo = "Remmina";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "07lj6a7x9cqcff18pwfkx8c8iml015zp6sq29dfcxpfg4ai578h0";
|
2012-07-02 14:30:13 +00:00
|
|
|
};
|
|
|
|
|
2017-01-09 08:57:39 +00:00
|
|
|
buildInputs = [ cmake pkgconfig wrapGAppsHook gsettings_desktop_schemas
|
2016-10-02 18:30:10 +00:00
|
|
|
glib gtk3 gettext libxkbfile libgnome_keyring libX11
|
|
|
|
freerdp_git libssh libgcrypt gnutls
|
|
|
|
pcre webkitgtk libdbusmenu-gtk3 libappindicator-gtk3
|
|
|
|
libvncserver libpthreadstubs libXdmcp libxkbcommon
|
|
|
|
libsecret spice_protocol spice_gtk epoxy at_spi2_core
|
2016-12-25 19:04:47 +00:00
|
|
|
openssl hicolor_icon_theme adwaita-icon-theme ];
|
2012-07-02 14:30:13 +00:00
|
|
|
|
2016-10-02 18:30:10 +00:00
|
|
|
cmakeFlags = "-DWITH_VTE=OFF -DWITH_TELEPATHY=OFF -DWITH_AVAHI=OFF -DWINPR_INCLUDE_DIR=${freerdp_git}/include/winpr2";
|
2013-11-05 09:00:33 +00:00
|
|
|
|
2016-10-21 09:39:43 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix LD_LIBRARY_PATH : "${libX11.out}/lib"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2012-07-02 14:30:13 +00: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 14:30:13 +00:00
|
|
|
'';
|
|
|
|
|
2013-11-10 17:25:12 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2012-07-02 14:30:13 +00:00
|
|
|
homepage = "http://remmina.sourceforge.net/";
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Remote desktop client written in GTK+";
|
2012-07-02 14:30:13 +00:00
|
|
|
maintainers = [];
|
2013-11-10 17:25:12 +00:00
|
|
|
platforms = platforms.linux;
|
2012-07-02 14:30:13 +00:00
|
|
|
};
|
|
|
|
}
|