2017-05-02 23:54:22 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig
|
2017-02-05 06:03:59 +00:00
|
|
|
, alsaLib, ffmpeg_2, glib, openssl, pcre, zlib
|
|
|
|
, libX11, libXcursor, libXdamage, libXext, libXi, libXinerama, libXrandr, libXrender, libXv
|
|
|
|
, libxkbcommon, libxkbfile
|
|
|
|
, wayland
|
|
|
|
, gstreamer, gst-plugins-base, gst-plugins-good
|
|
|
|
, libpulseaudio ? null
|
|
|
|
, cups ? null
|
|
|
|
, pcsclite ? null
|
|
|
|
, systemd ? null
|
|
|
|
, buildServer ? true
|
|
|
|
, optimize ? true
|
2011-09-07 00:32:01 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-05 06:03:59 +00:00
|
|
|
name = "freerdp-git-${version}";
|
2017-08-02 14:11:54 +01:00
|
|
|
version = "20170724";
|
2011-09-07 00:32:01 +01:00
|
|
|
|
2017-02-05 06:03:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FreeRDP";
|
|
|
|
repo = "FreeRDP";
|
2017-08-02 14:11:54 +01:00
|
|
|
rev = "2.0.0-rc0";
|
|
|
|
sha256 = "0ngwdy0lfv2k59z1z8yq1wj5zbhqigpyfqbgh38m9p35yzh33lv1";
|
2011-09-07 00:32:01 +01:00
|
|
|
};
|
|
|
|
|
2017-02-05 06:03:59 +00:00
|
|
|
# outputs = [ "bin" "out" "dev" ];
|
2011-09-07 00:32:01 +01:00
|
|
|
|
2017-02-05 06:03:59 +00:00
|
|
|
prePatch = ''
|
|
|
|
export HOME=$TMP
|
|
|
|
substituteInPlace "libfreerdp/freerdp.pc.in" \
|
|
|
|
--replace "Requires:" "Requires: @WINPR_PKG_CONFIG_FILENAME@"
|
2017-05-02 23:54:22 +01:00
|
|
|
'' + lib.optionalString (pcsclite != null) ''
|
|
|
|
substituteInPlace "winpr/libwinpr/smartcard/smartcard_pcsc.c" \
|
|
|
|
--replace "libpcsclite.so" "${pcsclite}/lib/libpcsclite.so"
|
2017-02-05 06:03:59 +00:00
|
|
|
'';
|
2011-09-07 04:42:23 +01:00
|
|
|
|
2017-02-05 06:03:59 +00:00
|
|
|
buildInputs = with lib; [
|
|
|
|
alsaLib cups ffmpeg_2 glib openssl pcre pcsclite libpulseaudio zlib
|
|
|
|
gstreamer gst-plugins-base gst-plugins-good
|
|
|
|
libX11 libXcursor libXdamage libXext libXi libXinerama libXrandr libXrender libXv
|
|
|
|
libxkbcommon libxkbfile
|
|
|
|
wayland
|
|
|
|
] ++ optional stdenv.isLinux systemd;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
2011-09-07 04:42:23 +01:00
|
|
|
|
2017-02-05 06:03:59 +00:00
|
|
|
cmakeFlags = with lib; [
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
"-DWITH_CUNIT=OFF"
|
|
|
|
"-DWITH_OSS=OFF"
|
|
|
|
] ++ optional (libpulseaudio != null) "-DWITH_PULSE=ON"
|
|
|
|
++ optional (cups != null) "-DWITH_CUPS=ON"
|
|
|
|
++ optional (pcsclite != null) "-DWITH_PCSC=ON"
|
|
|
|
++ optional buildServer "-DWITH_SERVER=ON"
|
|
|
|
++ optional optimize "-DWITH_SSE2=ON";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Remote Desktop Protocol Client";
|
2011-09-07 04:42:23 +01:00
|
|
|
longDescription = ''
|
|
|
|
FreeRDP is a client-side implementation of the Remote Desktop Protocol (RDP)
|
|
|
|
following the Microsoft Open Specifications.
|
|
|
|
'';
|
|
|
|
homepage = http://www.freerdp.com/;
|
2017-02-05 06:03:59 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ wkennington peterhoeg ];
|
|
|
|
platforms = platforms.unix;
|
2011-09-07 04:42:23 +01:00
|
|
|
};
|
2011-09-07 00:32:01 +01:00
|
|
|
}
|