-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119057 from erdnaxe/obs-websocket
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
pkgs/applications/video/obs-studio/plugins/obs-websocket.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" ]; | ||
}; | ||
} |