diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/video/obs-studio/plugins/advanced-scene-switcher/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/video/obs-studio/plugins/advanced-scene-switcher/default.nix | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/video/obs-studio/plugins/advanced-scene-switcher/default.nix b/nixpkgs/pkgs/applications/video/obs-studio/plugins/advanced-scene-switcher/default.nix new file mode 100644 index 000000000000..b776981522d0 --- /dev/null +++ b/nixpkgs/pkgs/applications/video/obs-studio/plugins/advanced-scene-switcher/default.nix @@ -0,0 +1,77 @@ +{ lib +, fetchFromGitHub + +, cmake +, ninja + +, alsa-lib +, asio +, curl +, nlohmann_json +, obs-studio +, opencv +, procps +, qtbase +, stdenv +, tesseract +, websocketpp +, xorg + +, httplib +, libremidi +}: + +stdenv.mkDerivation rec { + pname = "advanced-scene-switcher"; + version = "1.24.2"; + + src = fetchFromGitHub { + owner = "WarmUpTill"; + repo = "SceneSwitcher"; + rev = version; + hash = "sha256-J5Qcs2eoKMeO1O/MCsR5wfmfbtndRaZmHrbleEZqqOo="; + }; + + nativeBuildInputs = [ + cmake + ninja + ]; + + buildInputs = [ + alsa-lib + asio + curl + libremidi + nlohmann_json + obs-studio + opencv + procps + qtbase + tesseract + websocketpp + xorg.libXScrnSaver + ]; + + dontWrapQtApps = true; + + postUnpack = '' + cp -r ${httplib.src}/* $sourceRoot/deps/cpp-httplib + cp -r ${libremidi.src}/* $sourceRoot/deps/libremidi + chmod -R +w $sourceRoot/deps/cpp-httplib + chmod -R +w $sourceRoot/deps/libremidi + ''; + + postInstall = '' + mkdir $out/lib $out/share + mv $out/obs-plugins/64bit $out/lib/obs-plugins + mv $out/data $out/share/obs + ''; + + meta = with lib; { + description = "An automated scene switcher for OBS Studio"; + homepage = "https://github.com/WarmUpTill/SceneSwitcher"; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ ]; + }; +} |