12 # Shadows support on Qt5 requires the feature backported from Qt6:
13 # https://src.fedoraproject.org/rpms/qt5-qtwayland/blob/rawhide/f/qtwayland-decoration-support-backports-from-qt6.patch
14 qt5ShadowsSupport ? false,
18 qt = if useQt6 then qt6 else qt5;
19 qtVersion = if useQt6 then "6" else "5";
22 stdenv.mkDerivation (finalAttrs: {
23 pname = "qadwaitadecorations";
26 src = fetchFromGitHub {
28 repo = "QAdwaitaDecorations";
29 rev = finalAttrs.version;
30 hash = "sha256-ZU3cwFwQECh4Z6YcTzD2WooZmJ2nSUABYft3dfakSuY=";
37 buildInputs = with qt; [
44 dontWrapQtApps = true;
48 "-DQT_PLUGINS_DIR=${placeholder "out"}/${qt.qtbase.qtPluginPrefix}"
50 ++ lib.optional useQt6 "-DUSE_QT6=true"
51 ++ lib.optional qt5ShadowsSupport "-DHAS_QT6_SUPPORT=true";
53 passthru.updateScript = nix-update-script { };
56 description = "Qt${qtVersion} Wayland decoration plugin using libadwaita style";
57 homepage = "https://github.com/FedoraQt/QAdwaitaDecorations";
58 license = lib.licenses.lgpl21Plus;
59 maintainers = with lib.maintainers; [ samlukeyes123 ];
60 platforms = lib.platforms.linux;