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