-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
gst-plugins-bad: disable zbar by default #84956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit message should use gst_all_1.gst-plugins-bad
tag – unfortunately, gst-plugins-bad
still refers to the legacy one.
@@ -53,7 +53,7 @@ python3.pkgs.buildPythonApplication rec { | |||
gst_all_1.gstreamer | |||
gst_all_1.gst-plugins-base | |||
(gst_all_1.gst-plugins-good.override { gtkSupport = true; }) | |||
gst_all_1.gst-plugins-bad # for zbar plug-in | |||
(gst_all_1.gst-plugins-bad.override { enableZbar = true; })# for zbar plug-in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(gst_all_1.gst-plugins-bad.override { enableZbar = true; })# for zbar plug-in | |
(gst_all_1.gst-plugins-bad.override { enableZbar = true; }) # for zbar plug-in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also thought about formatting the expression with nixpkgs-fmt
, but that changed quite a lot.
Shall I still do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I already formatted it. Using nixpkgs-fmt
master I do not see any changes in this expression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jtojnar Well, I do using nixpkgs-fmt 0.6.1
gst-plugins-bad by default used to pull in gtk3 and qtbase and qtx11extras because of the default dependency on zbar. As zbar is a rarely needed gstreamer plugin, this unnecessarily increased the closure size. I am only aware of gnome-keysign actually using the zbar plugin, so that uses a zbar-enabled gst-plugins-bad. closes NixOS#84845
9d77eb1
to
2df7f92
Compare
Thanks. |
Edit: nevermind |
gst-plugins-bad was updated to be built without zbar by defaut in NixOS#84956. Zbar support is required for warps QR scanning feature to properly function. Additionally, camera support requires the GStreamer module multifilesink, which is part of gst-plugins-good.
Motivation for this change
gst-plugins-bad by default used to pull in gtk3 and qtbase and qtx11extras because of the default dependency on zbar.
As zbar is a rarely needed gstreamer plugin, this unnecessarily
increased the closure size.
I am only aware of gnome-keysign actually using the zbar plugin, so that
uses a zbar-enabled gst-plugins-bad.
closes #84845
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
Several packages failed to build, but these failures seem unrelated to this PR.
Full build log:
./result/bin/
)nix path-info -S
before and after)