Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 851 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 obs-studio, 7}: 8 9stdenv.mkDerivation { 10 pname = "obs-source-switcher"; 11 version = "0.4.3"; 12 13 src = fetchFromGitHub { 14 owner = "exeldro"; 15 repo = "obs-source-switcher"; 16 rev = "b229f40faceb0bb39cea41ce0ce2f2f236c0cbd1"; 17 hash = "sha256-5io2uMvPdHQAWFDqLyXLC6nxTEjkrk8v4v8XwGsPF7U="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 22 buildInputs = [ obs-studio ]; 23 24 cmakeFlags = [ "-DBUILD_OUT_OF_TREE=On" ]; 25 26 postInstall = '' 27 rm -rf $out/obs-plugins $out/data 28 ''; 29 30 meta = { 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 lib.maintainers; [ flexiondotorg ]; 34 license = lib.licenses.gpl2Plus; 35 platforms = [ 36 "x86_64-linux" 37 "i686-linux" 38 ]; 39 }; 40}