nixpkgs/pkgs/applications/networking/remote/rdesktop/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
997 B
Nix
Raw Normal View History

2021-05-18 14:33:26 +00:00
{ lib, stdenv, fetchFromGitHub, openssl, libX11, krb5, libXcursor, libtasn1
, nettle, gnutls, pkg-config, autoreconfHook, libiconv
, enableCredssp ? (!stdenv.isDarwin)
} :
stdenv.mkDerivation (rec {
pname = "rdesktop";
2020-04-28 17:35:41 +00:00
version = "1.9.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2020-04-28 17:35:41 +00:00
sha256 = "1s6k1jwd28y38ymk3lfv76ch4arpfwrbdhpkbnwwy3fc4617gb78";
};
nativeBuildInputs = [pkg-config autoreconfHook];
2020-04-28 17:35:41 +00:00
buildInputs = [openssl libX11 libXcursor libtasn1 nettle gnutls]
2021-05-18 14:33:26 +00:00
++ lib.optional enableCredssp krb5
++ lib.optional stdenv.isDarwin libiconv;
2014-02-20 11:27:38 +00:00
configureFlags = [
2017-05-17 18:53:36 +00:00
"--with-ipv6"
"--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";
meta = {
description = "Open source client for Windows Terminal Services";
homepage = "http://www.rdesktop.org/";
2021-01-15 13:21:58 +00:00
platforms = lib.platforms.linux ++ lib.platforms.darwin;
license = lib.licenses.gpl2;
};
})