summary refs log tree commit diff
diff options
context:
space:
mode:
authorCraig Younkins <cyounkins@gmail.com>2019-04-03 11:30:16 -0400
committerCraig Younkins <cyounkins@gmail.com>2019-04-17 18:53:23 -0400
commitfcede9bbf0992bcae4e753e333e3b687af17baeb (patch)
treeb9b7a00777e0e40ebd2beeb25cfa8ef97c1f4f14
parent503d4b5e1adb0547d00d92432f8b72f67fb00edd (diff)
downloadnixpkgs-fcede9bbf0992bcae4e753e333e3b687af17baeb.tar
nixpkgs-fcede9bbf0992bcae4e753e333e3b687af17baeb.tar.gz
nixpkgs-fcede9bbf0992bcae4e753e333e3b687af17baeb.tar.bz2
nixpkgs-fcede9bbf0992bcae4e753e333e3b687af17baeb.tar.lz
nixpkgs-fcede9bbf0992bcae4e753e333e3b687af17baeb.tar.xz
nixpkgs-fcede9bbf0992bcae4e753e333e3b687af17baeb.tar.zst
nixpkgs-fcede9bbf0992bcae4e753e333e3b687af17baeb.zip
rdesktop: enable darwin support without libgssglue and credssp
-rw-r--r--pkgs/applications/networking/remote/rdesktop/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/applications/networking/remote/rdesktop/default.nix b/pkgs/applications/networking/remote/rdesktop/default.nix
index 4caa9ae63f7..9cd6083f40c 100644
--- a/pkgs/applications/networking/remote/rdesktop/default.nix
+++ b/pkgs/applications/networking/remote/rdesktop/default.nix
@@ -1,4 +1,6 @@
-{stdenv, fetchurl, openssl, libX11, libgssglue, pkgconfig} :
+{stdenv, fetchurl, openssl, libX11, libgssglue, pkgconfig
+, enableCredssp ? (!stdenv.isDarwin)
+} :
 
 stdenv.mkDerivation (rec {
   pname = "rdesktop";
@@ -11,18 +13,19 @@ stdenv.mkDerivation (rec {
   };
 
   nativeBuildInputs = [pkgconfig];
-  buildInputs = [openssl libX11 libgssglue];
+  buildInputs = [openssl libX11]
+    ++ stdenv.lib.optional enableCredssp libgssglue;
 
   configureFlags = [
     "--with-ipv6"
     "--with-openssl=${openssl.dev}"
     "--disable-smartcard"
-  ];
+  ] ++ stdenv.lib.optional (!enableCredssp) "--disable-credssp";
 
   meta = {
     description = "Open source client for Windows Terminal Services";
     homepage = http://www.rdesktop.org/;
-    platforms = stdenv.lib.platforms.linux;
+    platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
     license = stdenv.lib.licenses.gpl2;
   };
 })