about summary refs log tree commit diff
path: root/pkgs/games/chiaki4deck/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/chiaki4deck/default.nix')
-rw-r--r--pkgs/games/chiaki4deck/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/games/chiaki4deck/default.nix b/pkgs/games/chiaki4deck/default.nix
index fad7a26e356f4..7bdce8d1df421 100644
--- a/pkgs/games/chiaki4deck/default.nix
+++ b/pkgs/games/chiaki4deck/default.nix
@@ -17,6 +17,7 @@
 , SDL2
 , libevdev
 , udev
+, curlFull
 , hidapi
 , json_c
 , fftw
@@ -66,6 +67,7 @@ stdenv.mkDerivation rec {
     qtwebengine
     protobuf
     SDL2
+    curlFull
     hidapi
     json_c
     fftw
@@ -82,8 +84,18 @@ stdenv.mkDerivation rec {
     xxHash
   ];
 
+  # handle cmake not being able to identify if curl is built with websocket support, and library name discrepancy when curl not built with cmake
+  postPatch = ''
+    substituteInPlace CMakeLists.txt \
+      --replace-fail ' WS WSS' ""
+
+    substituteInPlace lib/CMakeLists.txt \
+      --replace-fail 'libcurl_shared' 'libcurl'
+  '';
+
   cmakeFlags = [
     "-Wno-dev"
+    (lib.cmakeFeature "CHIAKI_USE_SYSTEM_CURL" "true")
   ];
 
   qtWrapperArgs = [