2021-05-18 15:33:26 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, openssl, libX11, krb5, libXcursor, libtasn1
|
|
|
|
, nettle, gnutls, pkg-config, autoreconfHook, libiconv
|
2019-04-03 16:30:16 +01:00
|
|
|
, enableCredssp ? (!stdenv.isDarwin)
|
|
|
|
} :
|
2008-01-28 12:28:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
pname = "rdesktop";
|
2020-04-28 18:35:41 +01:00
|
|
|
version = "1.9.0";
|
2008-01-28 12:28:23 +00:00
|
|
|
|
2019-07-03 21:27:14 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-04-28 18:35:41 +01:00
|
|
|
sha256 = "1s6k1jwd28y38ymk3lfv76ch4arpfwrbdhpkbnwwy3fc4617gb78";
|
2008-01-28 12:28:23 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [pkg-config autoreconfHook];
|
2020-04-28 18:35:41 +01:00
|
|
|
buildInputs = [openssl libX11 libXcursor libtasn1 nettle gnutls]
|
2021-05-18 15:33:26 +01:00
|
|
|
++ lib.optional enableCredssp krb5
|
|
|
|
++ lib.optional stdenv.isDarwin libiconv;
|
2008-01-28 12:28:23 +00:00
|
|
|
|
2014-02-20 11:27:38 +00:00
|
|
|
configureFlags = [
|
2017-05-17 19:53:36 +01:00
|
|
|
"--with-ipv6"
|
2016-04-16 18:44:32 +01:00
|
|
|
"--with-openssl=${openssl.dev}"
|
2014-02-20 11:27:38 +00:00
|
|
|
"--disable-smartcard"
|
2021-01-15 13:21:58 +00:00
|
|
|
] ++ lib.optional (!enableCredssp) "--disable-credssp";
|
2008-01-28 12:28:23 +00:00
|
|
|
|
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Open source client for Windows Terminal Services";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.rdesktop.org/";
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
|
|
license = lib.licenses.gpl2;
|
2008-01-28 12:28:23 +00:00
|
|
|
};
|
|
|
|
})
|