diff options
author | Izorkin <izorkin@elven.pw> | 2023-12-25 23:31:25 +0300 |
---|---|---|
committer | Izorkin <izorkin@elven.pw> | 2023-12-25 23:31:25 +0300 |
commit | 2e14d8ba72b07047d1dda0ed8161956fba34ee0a (patch) | |
tree | 3dbbb040af24a23d9f3bebca60718db4736d632d /pkgs/development/libraries | |
parent | b59ddb30f46babd5214fef8dcaef79e07e643a5b (diff) |
nixos/no-x-libs: build qtbase without qt translation
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/qt-5/modules/qtbase.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index 67e9bd5440d11..594489a0d7505 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -15,7 +15,7 @@ # optional dependencies , cups ? null, postgresql ? null , withGtk3 ? false, dconf, gtk3 -, qttranslations ? null +, withQttranslation ? true, qttranslations ? null # options , libGLSupported ? !stdenv.isDarwin @@ -351,7 +351,8 @@ stdenv.mkDerivation (finalAttrs: ({ ] ++ lib.optionals (mysqlSupport) [ "-L" "${libmysqlclient}/lib" "-I" "${libmysqlclient}/include" - ] ++ lib.optional (qttranslations != null) [ + ] ++ lib.optional (withQttranslation && (qttranslations != null)) [ + # depends on x11 "-translationdir" "${qttranslations}/translations" ] ); |