Merge pull request #278127 from the-furry-hubofeverything/obs-libfdk

obs-studio: set libfdk build flag and add the license for it

authored by Franz Pletz and committed by GitHub 376f7bc0 ae2e47dc

+5 -3
+5 -3
pkgs/applications/video/obs-studio/default.nix
··· 35 35 , libcef 36 36 , pciutils 37 37 , pipewireSupport ? stdenv.isLinux 38 + , withFdk ? true 38 39 , pipewire 39 40 , libdrm 40 41 , libajantv2 ··· 86 87 87 88 buildInputs = [ 88 89 curl 89 - fdk_aac 90 90 ffmpeg_4 91 91 jansson 92 92 libcef ··· 118 118 ++ optionals scriptingSupport [ luajit python3 ] 119 119 ++ optional alsaSupport alsa-lib 120 120 ++ optional pulseaudioSupport libpulseaudio 121 - ++ optionals pipewireSupport [ pipewire libdrm ]; 121 + ++ optionals pipewireSupport [ pipewire libdrm ] 122 + ++ optional withFdk fdk_aac; 122 123 123 124 # Copied from the obs-linuxbrowser 124 125 postUnpack = '' ··· 140 141 "-DCEF_ROOT_DIR=../../cef" 141 142 "-DENABLE_JACK=ON" 142 143 (lib.cmakeBool "ENABLE_QSV11" stdenv.hostPlatform.isx86_64) 144 + (lib.cmakeBool "ENABLE_LIBFDK" withFdk) 143 145 ]; 144 146 145 147 dontWrapGApps = true; ··· 178 180 ''; 179 181 homepage = "https://obsproject.com"; 180 182 maintainers = with maintainers; [ jb55 MP2E materus fpletz ]; 181 - license = licenses.gpl2Plus; 183 + license = with licenses; [ gpl2Plus ] ++ optional withFdk fraunhofer-fdk; 182 184 platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" ]; 183 185 mainProgram = "obs"; 184 186 };