biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / video / obs-studio / plugins / obs-command-source.nix
blob8a0f9adcca067b5b7791d21d8f543ddb3c491f98
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , obs-studio
6 }:
8 stdenv.mkDerivation rec {
9   pname = "obs-command-source";
10   version = "0.5.0";
12   src = fetchFromGitHub {
13     owner = "norihiro";
14     repo = "obs-command-source";
15     rev = version;
16     sha256 = "sha256-yrzY4pHSupkkdRlx725oSVtQTH1Ci9zFolHN3i2Vm28=";
17   };
19   nativeBuildInputs = [ cmake ];
20   buildInputs = [ obs-studio ];
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   '';
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   };