Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
959 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
asio,
obs-studio,
qtbase,
websocketpp,
}:
stdenv.mkDerivation rec {
pname = "obs-websocket";
version = "4.9.1-compat";
src = fetchFromGitHub {
owner = "obsproject";
repo = "obs-websocket";
rev = version;
sha256 = "sha256-cHsJxoQjwbWLxiHgIa3Es0mu62vyLCAd1wULeZqZsJM=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
asio
obs-studio
qtbase
websocketpp
];
dontWrapQtApps = true;
postInstall = ''
mkdir $out/lib $out/share
mv $out/obs-plugins/64bit $out/lib/obs-plugins
rm -rf $out/obs-plugins
mv $out/data $out/share/obs
'';
meta = {
description = "Legacy websocket 4.9.1 protocol support for OBS Studio 28 or above";
homepage = "https://github.com/obsproject/obs-websocket";
maintainers = with lib.maintainers; [ flexiondotorg ];
license = lib.licenses.gpl2Plus;
inherit (obs-studio.meta) platforms;
};
}