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