2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, obs-studio
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "obs-command-source";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.5.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "norihiro";
|
|
|
|
repo = "obs-command-source";
|
|
|
|
rev = version;
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-yrzY4pHSupkkdRlx725oSVtQTH1Ci9zFolHN3i2Vm28=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ obs-studio ];
|
|
|
|
|
|
|
|
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 = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "OBS Studio plugin that provides a dummy source to execute arbitrary commands when a scene is switched";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/norihiro/command-source";
|
|
|
|
maintainers = with maintainers; [ flexiondotorg ];
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
};
|
|
|
|
}
|