Unverified Commit 5c92060a authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

libwebsockets: hack-fix build with cmake 4

parent 7f7a16f9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -21,6 +21,14 @@ stdenv.mkDerivation rec {
    hash = "sha256-KOAhIVn4G5u0A1TE75Xv7iYO3/i8foqWYecH0kJHdBM=";
  };

  # Updating to 4.4.1 would bring some errors, and the patch doesn't apply cleanly
  # https://github.com/warmcat/libwebsockets/commit/47efb8c1c2371fa309f85a32984e99b2cc1d614a
  postPatch = ''
    for f in $(find . -name CMakeLists.txt); do
      sed '/^cmake_minimum_required/Is/VERSION [0-9]\.[0-9]/VERSION 3.5/' -i "$f"
    done
  '';

  outputs = [
    "out"
    "dev"