Merge pull request #270447 from paveloom/advanced-scene-switcher

obs-studio-plugins.advanced-scene-switcher: 1.23.1 -> 1.24.0 + refactor
This commit is contained in:
Weijia Wang 2023-11-30 03:27:20 +01:00 committed by GitHub
commit 598257e868
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,41 +1,53 @@
{ alsa-lib
, asio
, cmake
, curl
{ lib
, fetchFromGitHub
, lib
, libremidi
, 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.23.1";
version = "1.24.0";
src = fetchFromGitHub {
owner = "WarmUpTill";
repo = "SceneSwitcher";
rev = version;
hash = "sha256-rpZ/vR9QbWgr8n6LDv6iTRsKXSIDGy0IpPu1Uatb0zw=";
hash = "sha256-Xnf8Vz6I5EfiiVoG0JRd0f0IJHw1IVkTLL4Th/hWYrc=";
};
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [
cmake
ninja
];
buildInputs = [
alsa-lib
asio
curl
libremidi
nlohmann_json
obs-studio
opencv
procps
qtbase
tesseract
websocketpp
xorg.libXScrnSaver
];
@ -43,7 +55,9 @@ stdenv.mkDerivation rec {
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
'';
@ -53,11 +67,11 @@ stdenv.mkDerivation rec {
mv $out/data $out/share/obs
'';
meta = {
meta = with lib; {
description = "An automated scene switcher for OBS Studio";
homepage = "https://github.com/WarmUpTill/SceneSwitcher";
maintainers = with lib.maintainers; [ paveloom ];
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ paveloom ];
};
}