From 9e3118de6b335a7396f26dba2551d2258e849fb4 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sat, 10 Apr 2021 18:50:47 +0200 Subject: [PATCH] obs-websocket: init at 4.9.0 --- .../obs-studio/plugins/obs-websocket.nix | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/applications/video/obs-studio/plugins/obs-websocket.nix diff --git a/pkgs/applications/video/obs-studio/plugins/obs-websocket.nix b/pkgs/applications/video/obs-studio/plugins/obs-websocket.nix new file mode 100644 index 000000000000..eb95353e8d6c --- /dev/null +++ b/pkgs/applications/video/obs-studio/plugins/obs-websocket.nix @@ -0,0 +1,39 @@ +{ lib +, stdenv +, fetchFromGitHub +, fetchpatch +, cmake +, qtbase +, obs-studio +, asio_1_10 +, websocketpp +}: + +stdenv.mkDerivation rec { + pname = "obs-websocket"; + version = "4.9.0"; + + src = fetchFromGitHub { + owner = "Palakis"; + repo = "obs-websocket"; + rev = version; + sha256 = "1dxih5czcfs1vczbq48784jvmgs8awbsrwk8mdfi4pg8n577cr1w"; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ qtbase obs-studio asio_1_10 websocketpp ]; + + dontWrapQtApps = true; + + cmakeFlags = [ + "-DLIBOBS_INCLUDE_DIR=${obs-studio.src}/libobs" + ]; + + meta = with lib; { + description = "Remote-control OBS Studio through WebSockets"; + homepage = "https://github.com/Palakis/obs-websocket"; + maintainers = with maintainers; [ erdnaxe ]; + license = licenses.gpl2Plus; + platforms = [ "x86_64-linux" "i686-linux" ]; + }; +}