From 081c63905b498cd0ca50565ae5ea6e44190096da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Thu, 7 Nov 2024 08:01:56 -0300 Subject: [PATCH] lxqt.lxqt-wayland-session: init at 0.1.0 --- pkgs/desktops/lxqt/default.nix | 2 + .../lxqt/lxqt-wayland-session/default.nix | 70 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 pkgs/desktops/lxqt/lxqt-wayland-session/default.nix diff --git a/pkgs/desktops/lxqt/default.nix b/pkgs/desktops/lxqt/default.nix index 3efd526cb6bd..059a2531fbbe 100644 --- a/pkgs/desktops/lxqt/default.nix +++ b/pkgs/desktops/lxqt/default.nix @@ -29,6 +29,7 @@ let lxqt-session = callPackage ./lxqt-session {}; lxqt-sudo = callPackage ./lxqt-sudo {}; lxqt-themes = callPackage ./lxqt-themes {}; + lxqt-wayland-session = callPackage ./lxqt-wayland-session {}; pavucontrol-qt = callPackage ./pavucontrol-qt {}; qtermwidget = callPackage ./qtermwidget {}; @@ -114,6 +115,7 @@ let lxqt-session lxqt-sudo lxqt-themes + lxqt-wayland-session pavucontrol-qt ### CORE 2 diff --git a/pkgs/desktops/lxqt/lxqt-wayland-session/default.nix b/pkgs/desktops/lxqt/lxqt-wayland-session/default.nix new file mode 100644 index 000000000000..21f4ef2548d9 --- /dev/null +++ b/pkgs/desktops/lxqt/lxqt-wayland-session/default.nix @@ -0,0 +1,70 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + kwindowsystem, + liblxqt, + libqtxdg, + lxqt-build-tools, + pkg-config, + qtsvg, + qttools, + xdg-user-dirs, + xkeyboard_config, + gitUpdater, +}: + +stdenv.mkDerivation rec { + pname = "lxqt-wayland-session"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "lxqt"; + repo = "lxqt-wayland-session"; + rev = version; + hash = "sha256-5WdfwJ89HWlXL6y9Lpgs7H3mbN/wbf+9VbP9ERPasBM="; + }; + + nativeBuildInputs = [ + cmake + lxqt-build-tools + pkg-config + qttools + ]; + + buildInputs = [ + kwindowsystem + liblxqt + libqtxdg + qtsvg + xdg-user-dirs + ]; + + postPatch = '' + substituteInPlace startlxqtwayland.in \ + --replace-fail /usr/share/X11/xkb/rules ${xkeyboard_config}/share/X11/xkb/rules + + substituteInPlace configurations/{labwc/autostart,lxqt-hyprland.conf,lxqt-wayfire.ini} \ + --replace-fail /usr/share/lxqt/wallpapers $out/share/lxqt/wallpapers + ''; + + dontWrapQtApps = true; + + passthru.updateScript = gitUpdater { }; + + meta = { + homepage = "https://github.com/lxqt/lxqt-wayland-session"; + description = "Files needed for the LXQt Wayland Session"; + license = with lib.licenses; [ + bsd3 + cc-by-sa-40 + gpl2Only + gpl3Only + lgpl21Only + mit + ]; + platforms = lib.platforms.linux; + maintainers = lib.teams.lxqt.members; + }; +}