···1011stdenv.mkDerivation rec {
12 pname = "obs-gstreamer";
13- version = "0.3.5";
1415 src = fetchFromGitHub {
16 owner = "fzwoch";
17- repo = "obs-gstreamer";
18 rev = "v${version}";
19- hash = "sha256-zP1MMoXLp+gp0fjVbWi/Wse6I8u9/K2IeSew3OjkCkE=";
20 };
2122 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 ];
0000004344 meta = with lib; {
45 description = "An OBS Studio source, encoder and video filter plugin to use GStreamer elements/pipelines in OBS Studio";
···1011stdenv.mkDerivation rec {
12 pname = "obs-gstreamer";
13+ version = "0.4.0";
1415 src = fetchFromGitHub {
16 owner = "fzwoch";
17+ repo = pname;
18 rev = "v${version}";
19+ hash = "sha256-C4yee7hzkSOjIeaacLaTGPzZ1qYdYtHK5a3m9gz2pPI=";
20 };
2122 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";
028 # - 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
038 gst-plugins-ugly
039 ];
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+ '';
4647 meta = with lib; {
48 description = "An OBS Studio source, encoder and video filter plugin to use GStreamer elements/pipelines in OBS Studio";