Navigation Menu

Skip to content
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

pulseview,pavucontrol-qt: use qt5.mkDerivation #65366

Closed
wants to merge 1 commit into from

Conversation

delroth
Copy link
Contributor

@delroth delroth commented Jul 25, 2019

Motivation for this change

I've noticed both of these apps don't start anymore due to missing Qt plugin path.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@delroth
Copy link
Contributor Author

delroth commented Jul 25, 2019

(@ttuegel)

Copy link
Contributor

@bjornfor bjornfor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add "I've noticed both of these apps don't start anymore due to missing Qt plugin path." or something to the commit message (the why part).

@worldofpeace
Copy link
Contributor

@ttuegel Would it be possible to open a tracking issue so people to explain to people how then can easily migrate to the qt wrappers?

The influx of PRs like this is going to be large, so it would be easy to track if each one opened would reference that single issue also.

The apps currently do not start because of a missing QT_PLUGIN_PATH.
@delroth
Copy link
Contributor Author

delroth commented Jul 25, 2019

Addressed both comments.

@delroth delroth changed the title pulseview,pavucontrol-qt: add wrapQtAppsHook pulseview,pavucontrol-qt: use qt5.mkDerivation Jul 26, 2019
@ofborg ofborg bot requested a review from bjornfor July 26, 2019 00:07
@bjornfor
Copy link
Contributor

I'm now a bit confused whether expressions should use the qt5 package set directly or not, see #65399 (comment).

But anyway, please split the commit in two, one for each package you're updating.

@bjornfor
Copy link
Contributor

No more confusion, this is how to do it: #65399 (comment).

@@ -1,9 +1,9 @@
{ stdenv, fetchurl, pkgconfig, cmake, glib, boost, libsigrok
, libsigrokdecode, libserialport, libzip, udev, libusb1, libftdi1, glibmm
, pcre, librevisa, python3, qtbase, qtsvg
, pcre, librevisa, python3, qt5, qtbase, qtsvg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
, pcre, librevisa, python3, qt5, qtbase, qtsvg
, pcre, librevisa, python3, mkDerivation, qtbase, qtsvg

}:

stdenv.mkDerivation rec {
qt5.mkDerivation rec {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
qt5.mkDerivation rec {
mkDerivation rec {

@@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, lxqt, libpulseaudio,
pcre, qtbase, qttools, qtx11extras }:
pcre, qt5, qtbase, qttools, qtx11extras }:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pcre, qt5, qtbase, qttools, qtx11extras }:
pcre, mkDerivation, qtbase, qttools, qtx11extras }:


stdenv.mkDerivation rec {
qt5.mkDerivation rec {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
qt5.mkDerivation rec {
mkDerivation rec {

@worldofpeace
Copy link
Contributor

We should never use qt* directly.

@bjornfor
Copy link
Contributor

@bjornfor said 3 weeks ago:
But anyway, please split the commit in two, one for each package you're updating.

In the meantime I merged #66869, since it had pulseview/single package as a separate commit. Please rebase.

@delroth delroth closed this Sep 8, 2019
@delroth delroth deleted the missing-wrapqt branch September 8, 2019 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants