1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/applications/networking/remote/freerdp/unstable.nix
Shea Levy 93be0770d7 Add unstable version of freerdp
svn path=/nixpkgs/trunk/; revision=29070
2011-09-07 03:41:18 +00:00

75 lines
1.6 KiB
Nix

{ stdenv
, fetchgit
, openssl
, printerSupport ? true, cups
, pkgconfig
, zlib
, libX11
, libXcursor
, alsaLib
, cmake
, libxkbfile
, libXinerama
, libXext
, directfb
, cunit
, xmonadHack ? false
}:
assert printerSupport -> cups != null;
let rev = "0d412ba629471aeb83d1c39d167d389d8f4262e5"; in
stdenv.mkDerivation (rec {
name = "freerdp-1.0pre${rev}";
src = fetchgit {
url = git://github.com/FreeRDP/FreeRDP-1.0.git;
inherit rev;
sha256 = "e8997677bde3d99c8ae6b6dd85ca2b6a17cca49f7dbd4d460908c969088130e6";
};
buildInputs = [
openssl
pkgconfig
zlib
libX11
libXcursor
libxkbfile
libXinerama
libXext
directfb
alsaLib
cmake
cunit
] ++ stdenv.lib.optional printerSupport cups;
postUnpack = ''
sed -i 's@xf_GetWorkArea(xfi)@///xf_GetWorkArea(xfi)@' git-export/client/X11/xf_monitor.c
'';
cmakeFlags = [ "-DWITH_DIRECTFB=ON" "-DWITH_CUNIT=ON" ];
meta = {
description = "A Remote Desktop Protocol Client";
longDescription = ''
FreeRDP is a client-side implementation of the Remote Desktop Protocol (RDP)
following the Microsoft Open Specifications.
'';
homepage = http://www.freerdp.com/;
license = "free-non-copyleft";
maintainers = [ stdenv.lib.maintainers.shlevy ];
};
} // (stdenv.lib.optionalAttrs xmonadHack {
#xmonad doesn't provide the _NET_WORKAREA atom, so we need to remove the
#call that relies on it. This just messes up sizing in non-fullscreen mode
postUnpack = ''
sed -i 's@xf_GetWorkArea(xfi)@///xf_GetWorkArea(xfi)@' git-export/client/X11/xf_monitor.c
'';
}))