nix-obs-scene-switcher/obs-scene-switcher.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

2022-08-25 02:15:57 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, curlFull
, pkg-config
, procps
, qtbase
, obs-studio
, opencv
, xorg
}:
stdenv.mkDerivation rec {
2022-08-25 02:22:59 +00:00
pname = "obs-scene-switcher";
2023-04-01 16:56:17 +00:00
version = "1.21.0";
2022-08-25 02:15:57 +00:00
src = fetchFromGitHub {
owner = "WarmUpTill";
repo = "SceneSwitcher";
rev = version;
2023-04-01 16:56:17 +00:00
sha256 = "QVJZBH4rTz/RnSg1oIL9tP8y5g+i1/3Hu/WaOl+vSf4=";
2022-08-25 02:15:57 +00:00
fetchSubmodules = true;
};
2022-08-25 02:21:57 +00:00
nativeBuildInputs = [ cmake pkg-config ];
2022-08-25 02:15:57 +00:00
buildInputs = with xorg; [ curlFull libXScrnSaver libXtst qtbase opencv procps ];
dontWrapQtApps = true;
cmakeFlags = with lib; [
2022-12-28 18:49:15 +00:00
"-DDEB_INSTALL=1"
"-DCMAKE_BUILD_TYPE=Release"
"-DLINUX_PORTABLE=ON"
2022-08-25 02:15:57 +00:00
"-DBUILD_OUT_OF_TREE=1"
2022-12-28 18:49:15 +00:00
"-Dlibobs_DIR=${obs-studio.out}/lib/cmake/libobs"
"-Dobs-frontend-api_DIR=${obs-studio.out}/lib/cmake/obs-frontend-api"
2022-08-25 02:15:57 +00:00
];
patches = [ ];
meta = with lib; {
2022-08-25 02:22:59 +00:00
description = "An automated scene switcher for OBS Studio ";
homepage = "https://obsproject.com/forum/resources/automatic-scene-switching.395/";
2022-08-25 02:15:57 +00:00
maintainers = [ ];
license = licenses.gpl2Plus;
platforms = [ "x86_64-linux" ];
};
}