summary refs log tree commit diff
path: root/pkgs/development/libraries/libwebsockets
diff options
context:
space:
mode:
authorRick van Schijndel <rol3517@gmail.com>2022-04-11 20:39:53 +0200
committerRick van Schijndel <rol3517@gmail.com>2022-04-24 21:16:17 +0200
commitda80a59e8f646ca284d2c7ffe070ad8e010c614f (patch)
tree63124bd581cb9e8523258b0067dde11dbe7db7a5 /pkgs/development/libraries/libwebsockets
parentb4729bad3d1c1c78dbd47634a1efba388c89dbbb (diff)
downloadnixpkgs-da80a59e8f646ca284d2c7ffe070ad8e010c614f.tar
nixpkgs-da80a59e8f646ca284d2c7ffe070ad8e010c614f.tar.gz
nixpkgs-da80a59e8f646ca284d2c7ffe070ad8e010c614f.tar.bz2
nixpkgs-da80a59e8f646ca284d2c7ffe070ad8e010c614f.tar.lz
nixpkgs-da80a59e8f646ca284d2c7ffe070ad8e010c614f.tar.xz
nixpkgs-da80a59e8f646ca284d2c7ffe070ad8e010c614f.tar.zst
nixpkgs-da80a59e8f646ca284d2c7ffe070ad8e010c614f.zip
libwebsockets: 4.3.0 -> 4.3.1
Changelog (there's no official one):
- https://github.com/warmcat/libwebsockets/compare/v4.3.0...v4.3.1

Also apply a patch required to make ttyd build again.
This is probably due to a bug in the lws cmake module,
which may only be exercised in this package.
See also https://github.com/tsl0922/ttyd/issues/918.
Diffstat (limited to 'pkgs/development/libraries/libwebsockets')
-rw-r--r--pkgs/development/libraries/libwebsockets/default.nix17
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/development/libraries/libwebsockets/default.nix b/pkgs/development/libraries/libwebsockets/default.nix
index faf6acd40b9..e0ee94faf0d 100644
--- a/pkgs/development/libraries/libwebsockets/default.nix
+++ b/pkgs/development/libraries/libwebsockets/default.nix
@@ -5,12 +5,13 @@
 , openssl
 , zlib
 , libuv
+, fetchpatch
 # External poll is required for e.g. mosquitto, but discouraged by the maintainer.
 , withExternalPoll ? false
 }:
 
 let
-  generic = { version, sha256 }: stdenv.mkDerivation rec {
+  generic = { version, sha256, patches ? [] }: stdenv.mkDerivation rec {
     pname = "libwebsockets";
     inherit version;
 
@@ -21,6 +22,8 @@ let
       inherit sha256;
     };
 
+    inherit patches;
+
     buildInputs = [ openssl zlib libuv ];
 
     nativeBuildInputs = [ cmake ];
@@ -76,7 +79,15 @@ in {
   };
 
   libwebsockets_4_3 = generic {
-    version = "4.3.0";
-    sha256 = "13lxb487mqlzbsbv6fbj50r1717mfwdy87ps592lgfy3307yqpr4";
+    version = "4.3.1";
+    sha256 = "sha256-lB3JHh058cQc5rycLnHk3JAOgtku0nRCixN5U6lPKq8=";
+    patches = [
+      # fixes the propagated cmake files, fixing the build of ttyd
+      # see also https://github.com/tsl0922/ttyd/issues/918
+      (fetchpatch {
+        url = "https://github.com/warmcat/libwebsockets/commit/99a8b9c4422bed45c8b7412a1e121056f2a6132a.patch";
+        hash = "sha256-zHBo2ZEayvibM+jzeVaZqySxghaOLUglpSFwuGhl6HM=";
+      })
+    ];
   };
 }