1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5, obs-studio
6}:
7
8stdenv.mkDerivation rec {
9 pname = "obs-command-source";
10 version = "0.4.0";
11
12 src = fetchFromGitHub {
13 owner = "norihiro";
14 repo = "obs-command-source";
15 rev = version;
16 sha256 = "sha256-rBGMQb7iGtxF54bBOK5lHI6VFYCSEyeSq2Arz0T0DPo=";
17 };
18
19 nativeBuildInputs = [ cmake ];
20 buildInputs = [ obs-studio ];
21
22 postInstall = ''
23 mkdir $out/lib $out/share
24 mv $out/obs-plugins/64bit $out/lib/obs-plugins
25 rm -rf $out/obs-plugins
26 mv $out/data $out/share/obs
27 '';
28
29 meta = with lib; {
30 description = "OBS Studio plugin that provides a dummy source to execute arbitrary commands when a scene is switched.";
31 homepage = "https://github.com/norihiro/command-source";
32 maintainers = with maintainers; [ flexiondotorg ];
33 license = licenses.gpl2Plus;
34 platforms = [ "x86_64-linux" "i686-linux" ];
35 };
36}