putty: 0.76 -> 0.80

Includes the mitigation for CVE-2023-48795 (Terrapin attack).

https://www.chiark.greenend.org.uk/~sgtatham/putty/changes.html

authored by Thomas Gerbet and committed by Martin Weinelt b6a6bca1 7602338f

+7 -28
+6 -27
pkgs/applications/networking/remote/putty/default.nix
··· 1 - { stdenv, lib, fetchurl, autoconf, automake, pkg-config, libtool 2 - , gtk2, halibut, ncurses, perl, darwin 1 + { stdenv, lib, fetchurl, cmake, perl, pkg-config 2 + , gtk3, ncurses, darwin 3 3 }: 4 4 5 5 stdenv.mkDerivation rec { 6 - version = "0.76"; 6 + version = "0.80"; 7 7 pname = "putty"; 8 8 9 9 src = fetchurl { ··· 11 11 "https://the.earth.li/~sgtatham/putty/${version}/${pname}-${version}.tar.gz" 12 12 "ftp://ftp.wayne.edu/putty/putty-website-mirror/${version}/${pname}-${version}.tar.gz" 13 13 ]; 14 - sha256 = "0gvi8phabszqksj2by5jrjmshm7bpirhgavz0dqyz1xaimxdjz2l"; 14 + hash = "sha256-IBPIOnIbF1NSnpCQ98ODDo/kyAoHDMznZFObrbP2cIE="; 15 15 }; 16 16 17 - # glib-2.62 deprecations 18 - env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 19 - 20 - preConfigure = lib.optionalString stdenv.hostPlatform.isUnix '' 21 - perl mkfiles.pl 22 - ( cd doc ; make ); 23 - ./mkauto.sh 24 - cd unix 25 - '' + lib.optionalString stdenv.hostPlatform.isWindows '' 26 - cd windows 27 - ''; 28 - 29 - TOOLPATH = stdenv.cc.targetPrefix; 30 - makefile = if stdenv.hostPlatform.isWindows then "Makefile.mgw" else null; 31 - 32 - installPhase = if stdenv.hostPlatform.isWindows then '' 33 - for exe in *.exe; do 34 - install -D $exe $out/bin/$exe 35 - done 36 - '' else null; 37 - 38 - nativeBuildInputs = [ autoconf automake halibut libtool perl pkg-config ]; 17 + nativeBuildInputs = [ cmake perl pkg-config ]; 39 18 buildInputs = lib.optionals stdenv.hostPlatform.isUnix [ 40 - gtk2 ncurses 19 + gtk3 ncurses 41 20 ] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.libs.utmp; 42 21 enableParallelBuilding = true; 43 22
+1 -1
pkgs/top-level/all-packages.nix
··· 40855 40855 pwntools = with python3Packages; toPythonApplication pwntools; 40856 40856 40857 40857 putty = callPackage ../applications/networking/remote/putty { 40858 - gtk2 = gtk2-x11; 40858 + gtk3 = if stdenv.isDarwin then gtk3-x11 else gtk3; 40859 40859 }; 40860 40860 40861 40861 qMasterPassword = qt6Packages.callPackage ../applications/misc/qMasterPassword { };