obs-studio-plugins.obs-scale-to-sound: init at 1.2.3

authored by

Martin Wimpress and committed by helbling.dev 3923eeb4 1f7283e6

+42
+2
pkgs/applications/video/obs-studio/plugins/default.nix
··· 40 40 41 41 obs-pipewire-audio-capture = callPackage ./obs-pipewire-audio-capture.nix { }; 42 42 43 + obs-scale-to-sound = callPackage ./obs-scale-to-sound.nix { }; 44 + 43 45 obs-shaderfilter = qt6Packages.callPackage ./obs-shaderfilter.nix { }; 44 46 45 47 obs-source-clone = callPackage ./obs-source-clone.nix { };
+40
pkgs/applications/video/obs-studio/plugins/obs-scale-to-sound.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , obs-studio 6 + }: 7 + 8 + stdenv.mkDerivation rec { 9 + pname = "obs-scale-to-sound"; 10 + version = "1.2.3"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "dimtpap"; 14 + repo = "obs-scale-to-sound"; 15 + rev = version; 16 + sha256 = "sha256-q/zNHPazNwmd7GHXrxNgajtOhcW+oTgH9rkIBzJpdpA="; 17 + }; 18 + 19 + nativeBuildInputs = [ cmake ]; 20 + buildInputs = [ obs-studio ]; 21 + 22 + cmakeFlags = [ 23 + "-DBUILD_OUT_OF_TREE=On" 24 + ]; 25 + 26 + postInstall = '' 27 + mkdir $out/lib $out/share 28 + mv $out/obs-plugins/64bit $out/lib/obs-plugins 29 + rm -rf $out/obs-plugins 30 + mv $out/data $out/share/obs 31 + ''; 32 + 33 + meta = with lib; { 34 + description = "OBS filter plugin that scales a source reactively to sound levels"; 35 + homepage = "https://github.com/dimtpap/obs-scale-to-sound"; 36 + maintainers = with maintainers; [ flexiondotorg ]; 37 + license = licenses.gpl2Plus; 38 + platforms = [ "x86_64-linux" "i686-linux" ]; 39 + }; 40 + }