diff options
Diffstat (limited to 'pkgs/games/chiaki4deck/default.nix')
-rw-r--r-- | pkgs/games/chiaki4deck/default.nix | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/pkgs/games/chiaki4deck/default.nix b/pkgs/games/chiaki4deck/default.nix index 83af55da1d01b..54e3c978c4da0 100644 --- a/pkgs/games/chiaki4deck/default.nix +++ b/pkgs/games/chiaki4deck/default.nix @@ -1,6 +1,5 @@ { lib , fetchFromGitHub -, fetchpatch , stdenv , cmake , pkg-config @@ -18,8 +17,11 @@ , SDL2 , libevdev , udev +, curlFull , hidapi +, json_c , fftw +, miniupnpc , speexdsp , libplacebo , vulkan-loader @@ -33,13 +35,13 @@ stdenv.mkDerivation rec { pname = "chiaki4deck"; - version = "1.6.6"; + version = "1.7.1"; src = fetchFromGitHub { owner = "streetpea"; repo = pname; rev = "v${version}"; - hash = "sha256-hai7fIyeNcAURfeQtAIqOLb9j8erPNoy3zHK4rgLjc0="; + hash = "sha256-dSipQH04NSB6t9ZmDq9cjFTmtabnzPRwL9ssmEEmEws="; fetchSubmodules = true; }; @@ -65,8 +67,11 @@ stdenv.mkDerivation rec { qtwebengine protobuf SDL2 + curlFull hidapi + json_c fftw + miniupnpc libevdev udev speexdsp @@ -79,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 = [ |