summary refs log tree commit diff
diff options
context:
space:
mode:
authorCharlotte Van Petegem <charlotte@vanpetegem.me>2023-05-31 10:08:09 +0200
committerCharlotte Van Petegem <charlotte@vanpetegem.me>2023-05-31 10:08:09 +0200
commit268a7bab34430c5b6f50e379653ccbda4fff4a9b (patch)
tree2894c89ea93bcd0801a74d7214609ca0b01c9a9c
parentb37538b1c8a57bd555e8219f8a4f3d96daa530ae (diff)
downloadnixpkgs-268a7bab34430c5b6f50e379653ccbda4fff4a9b.tar
nixpkgs-268a7bab34430c5b6f50e379653ccbda4fff4a9b.tar.gz
nixpkgs-268a7bab34430c5b6f50e379653ccbda4fff4a9b.tar.bz2
nixpkgs-268a7bab34430c5b6f50e379653ccbda4fff4a9b.tar.lz
nixpkgs-268a7bab34430c5b6f50e379653ccbda4fff4a9b.tar.xz
nixpkgs-268a7bab34430c5b6f50e379653ccbda4fff4a9b.tar.zst
nixpkgs-268a7bab34430c5b6f50e379653ccbda4fff4a9b.zip
libssh2: 1.10.0 -> 1.11.0
https://github.com/libssh2/libssh2/releases/tag/libssh2-1.11.0
-rw-r--r--pkgs/development/libraries/libssh2/default.nix10
-rw-r--r--pkgs/development/libraries/libssh2/openssl_add_support_for_libressl_3_5.patch26
2 files changed, 2 insertions, 34 deletions
diff --git a/pkgs/development/libraries/libssh2/default.nix b/pkgs/development/libraries/libssh2/default.nix
index ce496637fcc..ba1455350e6 100644
--- a/pkgs/development/libraries/libssh2/default.nix
+++ b/pkgs/development/libraries/libssh2/default.nix
@@ -2,21 +2,15 @@
 
 stdenv.mkDerivation rec {
   pname = "libssh2";
-  version = "1.10.0";
+  version = "1.11.0";
 
   src = fetchurl {
     url = "https://www.libssh2.org/download/libssh2-${version}.tar.gz";
-    sha256 = "sha256-LWTpDz3tOUuR06LndMogOkF59prr7gMAPlpvpiHkHVE=";
+    sha256 = "sha256-NzYWHkHiaTMk3rOMJs/cPv5iCdY0ukJY2xzs/2pa1GE=";
   };
 
   outputs = [ "out" "dev" "devdoc" ];
 
-  patches = [
-    # https://github.com/libssh2/libssh2/pull/700
-    # openssl: add support for LibreSSL 3.5.x
-    ./openssl_add_support_for_libressl_3_5.patch
-  ];
-
   buildInputs = [ openssl zlib ]
     ++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64;
 
diff --git a/pkgs/development/libraries/libssh2/openssl_add_support_for_libressl_3_5.patch b/pkgs/development/libraries/libssh2/openssl_add_support_for_libressl_3_5.patch
deleted file mode 100644
index d72a67a6340..00000000000
--- a/pkgs/development/libraries/libssh2/openssl_add_support_for_libressl_3_5.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From f0681a4573d7c7f7484d3157ddff7063a200295b Mon Sep 17 00:00:00 2001
-From: Viktor Szakats <commit@vsz.me>
-Date: Thu, 19 May 2022 13:25:06 +0000
-Subject: [PATCH] openssl: add support for LibreSSL 3.5.x
-
-LibreSSL 3.5.0 made more structures opaque, so let's enable existing
-support for that when building against these LibreSSL versions.
-
-Ref: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.5.0-relnotes.txt
----
- src/openssl.h | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/src/openssl.h b/src/openssl.h
-index 658b040..1733b9e 100644
---- a/src/openssl.h
-+++ b/src/openssl.h
-@@ -58,7 +58,8 @@
- #include <openssl/rand.h>
-
- #if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
--    !defined(LIBRESSL_VERSION_NUMBER)
-+    !defined(LIBRESSL_VERSION_NUMBER) || \
-+    LIBRESSL_VERSION_NUMBER >= 0x3050000fL
- # define HAVE_OPAQUE_STRUCTS 1
- #endif