about summary refs log tree commit diff
path: root/pkgs/applications/networking/remote/putty
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2019-10-17 00:36:47 +0100
committerRobert Scott <code@humanleg.org.uk>2019-10-18 21:35:20 +0100
commita3ea2866279eb82b79c721146583e40bea3605f2 (patch)
tree709733f2403f8af330b3d0ff5199e5a22911762c /pkgs/applications/networking/remote/putty
parent8f118b1fa30092f6de4ad8546c7b8b10832a714c (diff)
downloadnixlib-a3ea2866279eb82b79c721146583e40bea3605f2.tar
nixlib-a3ea2866279eb82b79c721146583e40bea3605f2.tar.gz
nixlib-a3ea2866279eb82b79c721146583e40bea3605f2.tar.bz2
nixlib-a3ea2866279eb82b79c721146583e40bea3605f2.tar.lz
nixlib-a3ea2866279eb82b79c721146583e40bea3605f2.tar.xz
nixlib-a3ea2866279eb82b79c721146583e40bea3605f2.tar.zst
nixlib-a3ea2866279eb82b79c721146583e40bea3605f2.zip
putty: 0.71 -> 0.73 (security)
fixing CVE-2019-17069

the AM subsitutions appear to be very old - they break 0.73's build and
modern releases seem to do without them fine
Diffstat (limited to 'pkgs/applications/networking/remote/putty')
-rw-r--r--pkgs/applications/networking/remote/putty/default.nix11
1 files changed, 4 insertions, 7 deletions
diff --git a/pkgs/applications/networking/remote/putty/default.nix b/pkgs/applications/networking/remote/putty/default.nix
index d8dc33c944e2..8c2d9ac36e9e 100644
--- a/pkgs/applications/networking/remote/putty/default.nix
+++ b/pkgs/applications/networking/remote/putty/default.nix
@@ -1,9 +1,9 @@
 { stdenv, lib, fetchurl, autoconf, automake, pkgconfig, libtool
-, gtk2, halibut, ncurses, perl
+, gtk2, halibut, ncurses, perl, darwin
 }:
 
 stdenv.mkDerivation rec {
-  version = "0.71";
+  version = "0.73";
   pname = "putty";
 
   src = fetchurl {
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
       "https://the.earth.li/~sgtatham/putty/${version}/${pname}-${version}.tar.gz"
       "ftp://ftp.wayne.edu/putty/putty-website-mirror/${version}/${pname}-${version}.tar.gz"
     ];
-    sha256 = "1f66iss0kqk982azmxbk4xfm2i1csby91vdvly6cr04pz3i1r4rg";
+    sha256 = "076z34jpik2dmlwxicvf1djjgnahcqv12rjhmb9yq6ml7x0bbc1x";
   };
 
   # glib-2.62 deprecations
@@ -20,9 +20,6 @@ stdenv.mkDerivation rec {
   preConfigure = lib.optionalString stdenv.hostPlatform.isUnix ''
     perl mkfiles.pl
     ( cd doc ; make );
-    sed -e '/AM_PATH_GTK(/d' \
-        -e '/AC_OUTPUT/iAM_PROG_CC_C_O' \
-        -e '/AC_OUTPUT/iAM_PROG_AR' -i configure.ac
     ./mkauto.sh
     cd unix
   '' + lib.optionalString stdenv.hostPlatform.isWindows ''
@@ -41,7 +38,7 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ autoconf automake halibut libtool perl pkgconfig ];
   buildInputs = lib.optionals stdenv.hostPlatform.isUnix [
     gtk2 ncurses
-  ];
+  ] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.libs.utmp;
   enableParallelBuilding = true;
 
   meta = with lib; {