{stdenv, fetchurl, openssl, libX11} : stdenv.mkDerivation (rec { pname = "rdesktop"; version = "1.8.3"; name = "${pname}-${version}"; src = fetchurl { url = "mirror://sourceforge/${pname}/${name}.tar.gz"; sha256 = "1r7c1rjmw2xzq8fw0scyb453gy9z19774z1z8ldmzzsfndb03cl8"; }; buildInputs = [openssl libX11]; configureFlags = [ "--with-ipv6" "--with-openssl=${openssl.dev}" "--disable-credssp" "--disable-smartcard" ]; meta = { description = "Open source client for Windows Terminal Services"; homepage = http://www.rdesktop.org/; platforms = stdenv.lib.platforms.linux; license = stdenv.lib.licenses.gpl2; }; })