Commit Graph

874 Commits

Author SHA1 Message Date
Andrew Childs
85020dcbda qtmultimedia: restrict libpulseaudio to linux
libpulseaudio doesn't currently build on darwin after a recent
upgrade (#160097). When looking closely at the darwin build, it
appeared that it wasn't being used at all.

❯ nix log $(nix-build --no-out-link  channel:nixpkgs-unstable --argstr system x86_64-darwin -A qt512.qtmultimedia) | grep PulseAudio
Checking for PulseAudio >= 0.9.10... no
  PulseAudio ............................. no

❯ nix log $(nix-build --no-out-link  channel:nixpkgs-unstable --argstr system x86_64-darwin -A qt514.qtmultimedia) | grep PulseAudio
Checking for PulseAudio >= 0.9.10... no
  PulseAudio ............................. no

❯ nix log $(nix-build --no-out-link  channel:nixpkgs-unstable --argstr system x86_64-darwin -A qt515.qtmultimedia) | grep PulseAudio
Checking for PulseAudio >= 0.9.10... no
  PulseAudio ............................. no
2022-04-20 00:01:14 +03:00
Fabián Heredia Montiel
fb73942a4e qt5: inherit stdenv for modules and override gcc version for qt512 and qt514 2022-04-16 10:56:03 -05:00
github-actions[bot]
795332a20e
Merge staging-next into staging 2022-04-14 18:01:48 +00:00
Vladimír Čunát
d5d94127fd
Merge branch 'staging-next' into staging
Minor conflicts; I hope I didn't mess up:
	pkgs/development/tools/misc/binutils/default.nix
	pkgs/games/openjk/default.nix
2022-04-14 09:53:21 +02:00
Will Cohen
c55f61061e libsForQt5.qt5.qtserialbus: enable for qt 5.14 2022-04-13 17:18:24 -04:00
Thomas Tuegel
45f6ec7332
Merge pull request #166933 from ttuegel/staging-qt-5-patches
Update Qt 5.15 patches
2022-04-13 09:04:42 -05:00
Adam Joseph
8660a09197 qtbase: use more than one core to build qmake
The qtbase package's `configurePhase` builds the `qmake` tool.  In the
current nixpkgs expression it does this single-threadedly, by invoking
`make` without a `-j` flag.

Let's thread `NIX_BUILD_CORES` through to `./configure`'s invocation
of `make` via the `MAKEFLAGS` variable.

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-04-12 13:33:51 -07:00
Adam Joseph
bd3b4c5483
qtwebengine: honor pipewireSupport (#161018) 2022-04-12 00:47:41 +02:00
Thomas Tuegel
35e673dda2
qtwayland: include app_id patch in module definition 2022-04-06 08:53:47 -05:00
Thomas Tuegel
40b789cfbb
qtbase: build with libdrm
qtwayland requires qtbase to be built with libdrm support, and other modules
might benefit from it, too.
2022-04-06 08:53:47 -05:00
Thomas Tuegel
dc7f25926e
qtModule: allow shared patches
Allow modules to include version-independent patches in addition to
version-dependent packages. Prior to this change, modules could only provide
version-independent patches _instead of_ version-dependent patches.
2022-04-06 08:52:10 -05:00
Thomas Tuegel
a4fbb92be0
qt515: update KDE patches 2022-04-06 08:52:07 -05:00
Vladimír Čunát
db57a90dcc
qt5*.qtwayland: deconflict patching
This fixes build in qt514 case.

The usual way here is to provide patches for each qt5 version
separately.  No other module adds them in this generic way.
The problem is when you combine the approaches; qtModule will only
take the list from the module and ignore the version-specific list.
2022-04-05 15:11:56 +02:00
github-actions[bot]
fc17fe6417
Merge master into staging-next 2022-04-02 18:01:07 +00:00
Alyssa Ross
fd78240ac8
treewide: use lib.getLib for OpenSSL libraries
At some point, I'd like to make another attempt at
71f1f4884b ("openssl: stop static binaries referencing libs"), which
was reverted in 195c7da07d.  One problem with my previous attempt is
that I moved OpenSSL's libraries to a lib output, but many dependent
packages were hardcoding the out output as the location of the
libraries.  This patch fixes every such case I could find in the tree.
It won't have any effect immediately, but will mean these packages
will automatically use an OpenSSL lib output if it is reintroduced in
future.

This patch should cause very few rebuilds, because it shouldn't make
any change at all to most packages I'm touching.  The few rebuilds
that are introduced come from when I've changed a package builder not
to use variable names like openssl.out in scripts / substitution
patterns, which would be confusing since they don't hardcode the
output any more.

I started by making the following global replacements:

    ${pkgs.openssl.out}/lib -> ${lib.getLib pkgs.openssl}/lib
    ${openssl.out}/lib -> ${lib.getLib openssl}/lib

Then I removed the ".out" suffix when part of the argument to
lib.makeLibraryPath, since that function uses lib.getLib internally.

Then I fixed up cases where openssl was part of the -L flag to the
compiler/linker, since that unambigously is referring to libraries.

Then I manually investigated and fixed the following packages:

 - pycurl
 - citrix-workspace
 - ppp
 - wraith
 - unbound
 - gambit
 - acl2

I'm reasonably confindent in my fixes for all of them.

For acl2, since the openssl library paths are manually provided above
anyway, I don't think openssl is required separately as a build input
at all.  Removing it doesn't make a difference to the output size, the
file list, or the closure.

I've tested evaluation with the OfBorg meta checks, to protect against
introducing evaluation failures.
2022-03-30 15:10:00 +00:00
Martin Weinelt
dd6b901a38
qt515.qtwebengine: drop obsoleted patch regarding glibc2.34 compat
It does not apply anymore, which makes the build fail.
2022-03-14 14:36:43 +01:00
Maximilian Bosch
940f4547fe
Merge pull request #150262 from Ma27/qtwayland-app_id
qtwayland: declare proper `app_id` for wrapped executables
2022-03-14 12:23:41 +01:00
Maximilian Bosch
7605d492a7
qt512.qtwebengine: fix build w/glibc-2.34
Failing Hydra build: https://hydra.nixos.org/build/163120450
2022-02-27 10:26:55 +01:00
Maximilian Bosch
0caf7e5f0c
qt514.qtwebengine: fix build w/glibc-2.34
Same problem here as with QT 5.15.

Failing Hydra build: https://hydra.nixos.org/build/153224604
2022-02-27 10:25:37 +01:00
Maximilian Bosch
b9078e581b
qt515.qtwebengine: fix build w/glibc-2.34
Derived from Fedora 35: d122c01163
Failing Hydra build: https://hydra.nixos.org/build/153232768
2022-02-27 10:25:37 +01:00
github-actions[bot]
dafecf1c6d
Merge staging-next into staging 2022-02-11 18:01:48 +00:00
Thomas Tuegel
df046661ac
Merge pull request #158144 from gbpdt/fix/qtwebkit_python3
qtwebkit: use python38 to build instead of python2
2022-02-11 10:41:14 -06:00
Luna Nova
adb8208581
qt515: Update KDE Qt 5.15 patches (20220208)
https://invent.kde.org/qt/qt/qtwayland/-/merge_requests/35
2022-02-08 17:01:56 -08:00
Luna Nova
a4e8f00de1
qt515: Update KDE Qt 5.15 patches (20220205) 2022-02-08 16:25:05 -08:00
Luna Nova
f730b8fa36
qt515: Update KDE Qt 5.15 patches 2022-02-08 16:25:05 -08:00
Luna Nova
6f0ae5f6f3
qt515 qtwayland: update to latest KDE patch 2022-02-08 16:25:05 -08:00
Luna Nova
db3df8802c
qt515: Update KDE Qt 5.15 patches 2022-02-08 16:25:05 -08:00
Jonathan Ringer
4bcdfdfc71
qt5.qtwebengine: pin ffmpeg to 4.x 2022-02-06 17:38:57 -08:00
github-actions[bot]
c69fbb8dc5
Merge master into staging-next 2022-02-05 00:01:49 +00:00
Graham Bennett
52ea4e5e58 qtwebkit: use python38 to build instead of python2
python38 appears to work just as well, so it seems better to use that rather
than python2.  This also resolves some build flakiness seen due to parallel
invocations of python2 that are fixed in python3.

Note that the scripts aren't compatible with python39 or later, some patching
would be required to resolve that.
2022-02-04 10:33:00 -05:00
Martin Weinelt
184d6ba76b
Merge pull request #142593 from toonn/linux-llvm-bump 2022-02-01 22:56:55 +01:00
rnhmjoj
00f80f36d2
qtwebengine: 5.15.7 -> 5.15.8 2022-02-01 21:09:46 +01:00
Will Cohen
7ec99ea7cf
qt5.qtwebkit: add disambiguate handle for darwin (#156809) 2022-01-27 13:00:11 -05:00
toonn
4f1480eb29
Qt5: WebEngine turn off warning causing errors 2022-01-17 13:29:46 +01:00
Jan Tojnar
f7aa55946b Merge branch 'staging-next' into staging
; Conflicts:
;	nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
;	nixos/doc/manual/release-notes/rl-2205.section.md
;	pkgs/build-support/libredirect/default.nix
2022-01-10 01:26:05 +01:00
Thomas Tuegel
61c158b34d
Merge pull request #153133 from veprbl/pr/qtbase_darwin_without_gtk
qt5.qtbase: build without GTK support on darwin
2022-01-08 10:36:00 -06:00
Ben Wolsieffer
f3386ca8cc qt5: apply makeScope overrides to qtModule
qtModule was defined outside of addPackages, which caused it to use a self
variable that isn't affected by updates using overrideScope. This caused
overrides to qtbase to be incompletely applied. I also entirely removed the
outer self variable to prevent it from being accidently used again.
2022-01-08 01:08:23 -05:00
Renaud
944a2dc835
Treewide: fix some permanent redirects on homepages
(#153213)
Issue #60004
2022-01-03 16:53:12 +01:00
Dmitry Kalinkin
9820587b93
qt5.qtbase: build without GTK support on darwin 2022-01-01 19:09:59 -05:00
Pavol Rusnak
5581f0f82f
qt5.qtwebengine: clarify on which platform is the package broken 2021-12-25 18:48:44 +01:00
Pavol Rusnak
af8c095665
qt5{12,14,15}: mark broken on aarch64-darwin 2021-12-25 18:48:44 +01:00
Pavol Rusnak
ca00abc407
qt5{12,14,15}: use default stdenv on darwin 2021-12-25 18:48:44 +01:00
Maximilian Bosch
b3823a35e5
qtwayland: declare proper app_id for wrapped executables
Since NixOS 21.11 it seems as if QT uses Wayland if possible[1].
However, my `pinentry-qt` flavor stopped floating because it's now
running in Wayland-mode rather than in XWayland mode where this seems to
be fine.

I wanted to add a rule to my `sway(1)`-config for that, but realized
that `pinentry` is missing an `app_id` to match:

    $ swaymsg -t get_tree | jq '.nodes[2].nodes[1].nodes[1].nodes[1].app_id'
    ""

This is because `QWaylandWindow::initWindow()` uses the application's
`baseName` to determine the app window. Unfortunately the `baseName`
drops all chars of the filename after the first dot[2]. This means that
every wrapped Nix package (i.e. `pkgs.foo` with `$out/bin/.foo-wrapped`)
will have an empty-string as baseName because the first character of the
filename is a dot. Since we're using the `wrapQtAppsHook` quite
excessively, a lot of programs are affected by this.

In order to work around this, I implemented a small patch for
`qtwayland` that strips away the `nixpkgs`-specific `.(name)-wrapped` of
a filename if needed and then sets the `app_id` to the expected
`baseName`. This is useful to make e.g. `sway`-configs with
`for_window`[3]-expressions from other distros compatible.

With this change, the `app_id` is set as I'd expect it:

    $ swaymsg -t get_tree | jq '.nodes[2].nodes[1].nodes[1].nodes[1].app_id'
    "pinentry-qt"

Even though we'll need the patch to get e.g. `foo` from `.foo-wrapped`,
I decided to file a bug-report against upstream[4].

[1] https://nixos.org/manual/nixos/stable/release-notes.html#sec-release-21.11
[2] https://doc.qt.io/qt-5/qfileinfo.html#baseName
[3] https://man.archlinux.org/man/sway.5.en
[4] https://bugreports.qt.io/browse/QTBUG-99137
2021-12-24 15:36:52 +01:00
github-actions[bot]
39d035c4cf
Merge master into staging-next 2021-12-22 00:01:35 +00:00
Dmitry Kalinkin
88171cca9b
qt5.qtbase: reinstate -Wno-error=unguarded-availability on darwin 2021-12-20 11:48:22 -05:00
Dmitry Kalinkin
e1aaaa90fe
llvmPackages.libcxx: unset _LIBCPP_USE_AVAILABILITY_APPLE 2021-12-18 10:09:25 -05:00
Dmitry Kalinkin
12ba3bc6eb
qt5.qtgamepad: add darwin support 2021-12-17 13:25:28 -05:00
Dmitry Kalinkin
5f5bc79a1b
qt5{14,15}.qtbase: fix build on darwin 2021-12-15 09:57:32 -05:00
github-actions[bot]
0242879f3f
Merge master into staging-next 2021-12-14 12:01:17 +00:00
Sandro
2c2a09678c
Merge pull request #149461 from SuperSandro2000/fix-version-qtwebengine 2021-12-14 11:08:24 +01:00