From a5baed85f24c4e5701d9a00df634f50e5cb01cd3 Mon Sep 17 00:00:00 2001 From: emaryn Date: Sat, 22 Feb 2025 23:18:17 +0800 Subject: [PATCH] obs-studio-plugins.obs-source-switcher: refactor --- .../obs-studio/plugins/obs-source-switcher.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/video/obs-studio/plugins/obs-source-switcher.nix b/pkgs/applications/video/obs-studio/plugins/obs-source-switcher.nix index 268d3f5395ad..e8bc60593fff 100644 --- a/pkgs/applications/video/obs-studio/plugins/obs-source-switcher.nix +++ b/pkgs/applications/video/obs-studio/plugins/obs-source-switcher.nix @@ -6,7 +6,7 @@ obs-studio, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation { pname = "obs-source-switcher"; version = "0.4.1"; @@ -14,25 +14,24 @@ stdenv.mkDerivation rec { owner = "exeldro"; repo = "obs-source-switcher"; rev = "8babf207d140e52114b6db63d98749d7a0a2758b"; - sha256 = "sha256-J/NdIGsSXCtSOGF72pJZqqN5Y73eJfrA72LgZcTlP5o="; + hash = "sha256-J/NdIGsSXCtSOGF72pJZqqN5Y73eJfrA72LgZcTlP5o="; }; nativeBuildInputs = [ cmake ]; + buildInputs = [ obs-studio ]; - cmakeFlags = [ - "-DBUILD_OUT_OF_TREE=On" - ]; + cmakeFlags = [ "-DBUILD_OUT_OF_TREE=On" ]; postInstall = '' rm -rf $out/obs-plugins $out/data ''; - meta = with lib; { + meta = { description = "Plugin for OBS Studio to switch between a list of sources"; homepage = "https://github.com/exeldro/obs-source-switcher"; - maintainers = with maintainers; [ flexiondotorg ]; - license = licenses.gpl2Plus; + maintainers = with lib.maintainers; [ flexiondotorg ]; + license = lib.licenses.gpl2Plus; platforms = [ "x86_64-linux" "i686-linux"