obs-studio-plugins.obs-source-switcher: init at unstable-2023-04-19

authored by Martin Wimpress and committed by helbling.dev 563c6e20 3d488016

+39
+2
pkgs/applications/video/obs-studio/plugins/default.nix
··· 44 44 45 45 obs-source-record = callPackage ./obs-source-record.nix { }; 46 46 47 + obs-source-switcher = callPackage ./obs-source-switcher.nix { }; 48 + 47 49 obs-teleport = callPackage ./obs-teleport { }; 48 50 49 51 obs-transition-table = qt6Packages.callPackage ./obs-transition-table.nix { };
+37
pkgs/applications/video/obs-studio/plugins/obs-source-switcher.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , obs-studio 6 + }: 7 + 8 + stdenv.mkDerivation rec { 9 + pname = "obs-source-switcher"; 10 + version = "0.4.1"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "exeldro"; 14 + repo = "obs-source-switcher"; 15 + rev = "8babf207d140e52114b6db63d98749d7a0a2758b"; 16 + sha256 = "sha256-J/NdIGsSXCtSOGF72pJZqqN5Y73eJfrA72LgZcTlP5o="; 17 + }; 18 + 19 + nativeBuildInputs = [ cmake ]; 20 + buildInputs = [ obs-studio ]; 21 + 22 + cmakeFlags = [ 23 + "-DBUILD_OUT_OF_TREE=On" 24 + ]; 25 + 26 + postInstall = '' 27 + rm -rf $out/obs-plugins $out/data 28 + ''; 29 + 30 + meta = with lib; { 31 + description = "Plugin for OBS Studio to switch between a list of sources"; 32 + homepage = "https://github.com/exeldro/obs-source-switcher"; 33 + maintainers = with maintainers; [ flexiondotorg ]; 34 + license = licenses.gpl2Plus; 35 + platforms = [ "x86_64-linux" "i686-linux" ]; 36 + }; 37 + }