11 # Shadows support on Qt5 requires the feature backported from Qt6:
12 # https://src.fedoraproject.org/rpms/qt5-qtwayland/blob/rawhide/f/qtwayland-decoration-support-backports-from-qt6.patch
13 , qt5ShadowsSupport ? false
17 qt = if useQt6 then qt6 else qt5;
18 qtVersion = if useQt6 then "6" else "5";
20 in stdenv.mkDerivation (finalAttrs: {
21 pname = "qadwaitadecorations";
24 src = fetchFromGitHub {
26 repo = "QAdwaitaDecorations";
27 rev = finalAttrs.version;
28 hash = "sha256-aqjm93tmBfDkmce1WG5xx8MCDCvo6AOrRHArj/+Ko9E=";
35 buildInputs = with qt; [
42 dontWrapQtApps = true;
45 "-DQT_PLUGINS_DIR=${placeholder "out"}/${qt.qtbase.qtPluginPrefix}"
46 ] ++ lib.optional useQt6 "-DUSE_QT6=true"
47 ++ lib.optional qt5ShadowsSupport "-DHAS_QT6_SUPPORT=true";
49 passthru.updateScript = nix-update-script { };
52 description = "Qt${qtVersion} Wayland decoration plugin using libadwaita style";
53 homepage = "https://github.com/FedoraQt/QAdwaitaDecorations";
54 license = lib.licenses.lgpl21Plus;
55 maintainers = with lib.maintainers; [ samlukeyes123 ];
56 platforms = lib.platforms.linux;