summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/remote/freerdp/default.nix
blob: 8d80630f316df75e6f02a18ce7318424b50c1d07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ stdenv
, fetchurl
, openssl
, printerSupport ? true, cups
, pkgconfig
, zlib
, libX11
, libXcursor
, alsaLib
}:

assert printerSupport -> cups != null;
stdenv.mkDerivation rec {
  name = "freerdp-0.8.2";

  src = fetchurl {
    url = "mirror://sourceforge/freerdp/${name}.tar.gz";
    sha256 = "1q9hhwyc4hk49hsmd2kghrfsawxcc7gy7vcmhdf91l8v95xp16iq";
  };

  buildInputs = [
    openssl
    pkgconfig
    zlib
    libX11
    libXcursor
    alsaLib
  ] ++ stdenv.lib.optional printerSupport cups;

  configureFlags = [
    "--with-x"
  ] ++ stdenv.lib.optional printerSupport "--with-printer=cups";

  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 ];
  };
}