Files
nixpkgs/pkgs/by-name/rd/rdesktop/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

72 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
openssl,
libX11,
krb5,
libXcursor,
libtasn1,
nettle,
gnutls,
pkg-config,
autoreconfHook,
libiconv,
fetchpatch,
enableCredssp ? (!stdenv.hostPlatform.isDarwin),
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rdesktop";
version = "1.9.0";
src = fetchFromGitHub {
owner = "rdesktop";
repo = "rdesktop";
tag = "v${finalAttrs.version}";
hash = "sha256-6Kx3giHMDc+5XfPCtjJ3NysCmTnb0TGrR8Mj0bgM0+g=";
};
nativeBuildInputs = [
pkg-config
autoreconfHook
];
buildInputs = [
openssl
libX11
libXcursor
libtasn1
nettle
gnutls
]
++ lib.optional enableCredssp krb5
++ lib.optional stdenv.hostPlatform.isDarwin libiconv;
configureFlags = [
"--with-ipv6"
"--with-openssl=${openssl.dev}"
"--disable-smartcard"
]
++ lib.optional (!enableCredssp) "--disable-credssp";
patches = [
./rdesktop-configure-c99.patch
(fetchpatch {
url = "https://github.com/rdesktop/rdesktop/commit/105c8cb69facf26238cd48f14ca9dbc0ff6be6bd.patch";
hash = "sha256-3/y7JaKDyULhlzwP3bsA8kOq7g4AvWUi50gxkCZ8sbU=";
})
(fetchpatch {
url = "https://github.com/rdesktop/rdesktop/commit/53ba87dc174175e98332e22355ad8662c02880d6.patch";
hash = "sha256-ORGHdabSu9kVkNovweqFVS53dx6NbiryPlgi6Qp83BA=";
})
];
meta = {
description = "Open source client for Windows Terminal Services";
mainProgram = "rdesktop";
homepage = "http://www.rdesktop.org/";
platforms = lib.platforms.linux ++ lib.platforms.darwin;
license = lib.licenses.gpl2;
};
})