obs-studio-plugins.obs-gstreamer: 0.3.5 -> 0.4.0

+9 -6
+9 -6
pkgs/applications/video/obs-studio/plugins/obs-gstreamer.nix
··· 10 10 11 11 stdenv.mkDerivation rec { 12 12 pname = "obs-gstreamer"; 13 - version = "0.3.5"; 13 + version = "0.4.0"; 14 14 15 15 src = fetchFromGitHub { 16 16 owner = "fzwoch"; 17 - repo = "obs-gstreamer"; 17 + repo = pname; 18 18 rev = "v${version}"; 19 - hash = "sha256-zP1MMoXLp+gp0fjVbWi/Wse6I8u9/K2IeSew3OjkCkE="; 19 + hash = "sha256-C4yee7hzkSOjIeaacLaTGPzZ1qYdYtHK5a3m9gz2pPI="; 20 20 }; 21 21 22 22 nativeBuildInputs = [ pkg-config meson ninja ]; ··· 25 25 # - We need "getLib" instead of default derivation, otherwise it brings gstreamer-bin; 26 26 # - without gst-plugins-base it won't even show proper errors in logs; 27 27 # - Without gst-plugins-bad it won't find element "h264parse"; 28 - # - gst-vaapi adds "VA-API" to "Encoder type"; 29 28 # - gst-plugins-ugly adds "x264" to "Encoder type"; 30 29 # Tip: "could not link appsrc to videoconvert1" can mean a lot of things, enable GST_DEBUG=2 for help. 31 30 passthru.obsWrapperArguments = ··· 36 35 gstreamer 37 36 gst-plugins-base 38 37 gst-plugins-bad 39 - 40 38 gst-plugins-ugly 41 - gst-vaapi 42 39 ]; 40 + 41 + # Fix output directory 42 + postInstall = '' 43 + mkdir $out/lib/obs-plugins 44 + mv $out/lib/obs-gstreamer.so $out/lib/obs-plugins/ 45 + ''; 43 46 44 47 meta = with lib; { 45 48 description = "An OBS Studio source, encoder and video filter plugin to use GStreamer elements/pipelines in OBS Studio";