lol

Merge pull request #245571 from Misterio77/qt6gtk2

qt6Packages.qt6gtk2: init at 0.2

authored by

Thiago Kenji Okada and committed by
GitHub
a6096c23 93d16f0f

+40 -1
+2 -1
nixos/modules/config/qt.nix
··· 19 19 pkgs.qgnomeplatform-qt6 20 20 pkgs.adwaita-qt6 21 21 ] 22 - else if isQtStyle then [ pkgs.libsForQt5.qtstyleplugins ] 22 + else if isQtStyle then [ pkgs.libsForQt5.qtstyleplugins pkgs.qt6Packages.qt6gtk2 ] 23 23 else if isQt5ct then [ pkgs.libsForQt5.qt5ct pkgs.qt6Packages.qt6ct ] 24 24 else if isLxqt then [ pkgs.lxqt.lxqt-qtplugin pkgs.lxqt.lxqt-config ] 25 25 else if isKde then [ pkgs.libsForQt5.plasma-integration pkgs.libsForQt5.systemsettings ] ··· 86 86 "adwaita-qt" 87 87 "adwaita-qt6" 88 88 ["libsForQt5" "qtstyleplugins"] 89 + ["qt6Packages" "qt6gtk2"] 89 90 ]; 90 91 description = lib.mdDoc '' 91 92 Selects the style to use for Qt applications.
+36
pkgs/tools/misc/qt6gtk2/default.nix
··· 1 + { fetchFromGitHub, lib, stdenv, gtk2, pkg-config, qmake, qtbase }: 2 + 3 + stdenv.mkDerivation (finalAttrs: { 4 + pname = "qt6gtk2"; 5 + version = "0.2"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "trialuser02"; 9 + repo = finalAttrs.pname; 10 + rev = finalAttrs.version; 11 + hash = "sha256-g5ZCwTnNEJJ57zEwNqMxrl0EWYJMt3PquZ2IsmxQYqk="; 12 + }; 13 + 14 + buildInputs = [ gtk2 qtbase ]; 15 + nativeBuildInputs = [ pkg-config qmake ]; 16 + 17 + dontWrapQtApps = true; 18 + 19 + installPhase = '' 20 + runHook preInstall 21 + 22 + mkdir -p $out/lib/qt-6/plugins/{platformthemes,styles} 23 + cp -pr src/qt6gtk2-qtplugin/libqt6gtk2.so $out/lib/qt-6/plugins/platformthemes 24 + cp -pr src/qt6gtk2-style/libqt6gtk2-style.so $out/lib/qt-6/plugins/styles 25 + 26 + runHook postInstall 27 + ''; 28 + 29 + meta = { 30 + description = "GTK+2.0 integration plugins for Qt6"; 31 + license = lib.licenses.gpl2Plus; 32 + homepage = "https://github.com/trialuser02/qt6gtk2"; 33 + maintainers = [ lib.maintainers.misterio77 ]; 34 + platforms = lib.platforms.linux; 35 + }; 36 + })
+2
pkgs/top-level/qt6-packages.nix
··· 33 33 34 34 qt6ct = callPackage ../tools/misc/qt6ct { }; 35 35 36 + qt6gtk2 = callPackage ../tools/misc/qt6gtk2 { }; 37 + 36 38 qtkeychain = callPackage ../development/libraries/qtkeychain { 37 39 inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation Security; 38 40 };