0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

qtbase: Check for wrapQtAppsHook in setupHook

This commit is contained in:
Thomas Tuegel 2021-01-12 05:50:23 -06:00
parent 67b7cffaec
commit 5590e365e4
No known key found for this signature in database
GPG key ID: 22CBF5249D4B4D59
109 changed files with 225 additions and 8 deletions

View file

@ -15,13 +15,14 @@ which are not shared by other C++ software:
```{=docbook}
<programlisting>
{ stdenv, lib, qtbase }: <co xml:id='qt-default-nix-co-1' />
{ stdenv, lib, qtbase, wrapQtAppsHook }: <co xml:id='qt-default-nix-co-1' />
stdenv.mkDerivation {
pname = "myapp";
version = "1.0";
buildInputs = [ qtbase ];
nativeBuildInputs = [ wrapQtAppsHook ]; <co xml:id'qt-default-nix-co-2' />
}
</programlisting>
@ -33,6 +34,13 @@ stdenv.mkDerivation {
because the Qt versions of dependencies may not be coherent, causing build and runtime failures.
</para>
</callout>
<callout arearefs="qt-default-nix-co-2'>
<para>
All Qt packages must include <literal>wrapQtAppsHook</literal> in
<literal>nativeBuildInputs</literal>, or you must explicitly set
<literal>dontWrapQtApps</literal>.
</para>
</callout>
</calloutlist>
```
@ -50,7 +58,8 @@ stdenv.mkDerivation {
}
```
Add entries to `qtWrapperArgs` are to modify the wrappers created by `wrapQtAppsHook`:
Add entries to `qtWrapperArgs` are to modify the wrappers created by
`wrapQtAppsHook`:
```nix
{ stdenv, wrapQtAppsHook }:
@ -65,7 +74,8 @@ stdenv.mkDerivation {
The entries are passed as arguments to [wrapProgram](#fun-wrapProgram).
Set `dontWrapQtApps` to stop applications from being wrapped automatically.
Wrap programs manually with `wrapQtApp`, using the syntax of [wrapProgram](#fun-wrapProgram):
Wrap programs manually with `wrapQtApp`, using the syntax of
[wrapProgram](#fun-wrapProgram):
```nix
{ stdenv, lib, wrapQtAppsHook }: