nixos/no-x-libs: build qtbase without qt translation

This commit is contained in:
Izorkin 2023-12-25 23:31:25 +03:00
parent b59ddb30f4
commit 2e14d8ba72
No known key found for this signature in database
GPG Key ID: 1436C1B3F3679F09
2 changed files with 4 additions and 3 deletions

View File

@ -72,7 +72,7 @@ with lib;
qemu = super.qemu.override { gtkSupport = false; spiceSupport = false; sdlSupport = false; };
qrencode = super.qrencode.overrideAttrs (_: { doCheck = false; });
qt5 = super.qt5.overrideScope (const (super': {
qtbase = super'.qtbase.override { withGtk3 = false; };
qtbase = super'.qtbase.override { withGtk3 = false; withQttranslation = false; };
}));
stoken = super.stoken.override { withGTK3 = false; };
# translateManpages -> perlPackages.po4a -> texlive-combined-basic -> texlive-core-big -> libX11

View File

@ -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"
]
);