about summary refs log tree commit diff
path: root/pkgs/applications/networking/remote/freerdp
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2011-09-07 03:41:18 +0000
committerShea Levy <shea@shealevy.com>2011-09-07 03:41:18 +0000
commit93be0770d7ba2e1c8c24242c6db864547faf7cee (patch)
tree98661139bdef912972a0bdb229b4c803d21b2a8a /pkgs/applications/networking/remote/freerdp
parent02aa1d7cde3a7cb50e7448e6862bbb2106d9ebde (diff)
downloadnixlib-93be0770d7ba2e1c8c24242c6db864547faf7cee.tar
nixlib-93be0770d7ba2e1c8c24242c6db864547faf7cee.tar.gz
nixlib-93be0770d7ba2e1c8c24242c6db864547faf7cee.tar.bz2
nixlib-93be0770d7ba2e1c8c24242c6db864547faf7cee.tar.lz
nixlib-93be0770d7ba2e1c8c24242c6db864547faf7cee.tar.xz
nixlib-93be0770d7ba2e1c8c24242c6db864547faf7cee.tar.zst
nixlib-93be0770d7ba2e1c8c24242c6db864547faf7cee.zip
Add unstable version of freerdp
svn path=/nixpkgs/trunk/; revision=29070
Diffstat (limited to 'pkgs/applications/networking/remote/freerdp')
-rw-r--r--pkgs/applications/networking/remote/freerdp/unstable.nix74
1 files changed, 74 insertions, 0 deletions
diff --git a/pkgs/applications/networking/remote/freerdp/unstable.nix b/pkgs/applications/networking/remote/freerdp/unstable.nix
new file mode 100644
index 000000000000..9856be275f0e
--- /dev/null
+++ b/pkgs/applications/networking/remote/freerdp/unstable.nix
@@ -0,0 +1,74 @@
+{ 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
+  '';
+}))
+