Skip to content

Commit

Permalink
qt6Packages.wayqt: init at 0.1.99
Browse files Browse the repository at this point in the history
  • Loading branch information
wineee committed Oct 29, 2023
1 parent 2353abf commit de3b480
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pkgs/development/libraries/wayqt/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{ stdenv
, lib
, fetchFromGitLab
, meson
, pkg-config
, qttools
, ninja
, qtbase
, wlroots
, wayland
}:

stdenv.mkDerivation (finalAttrs: {
pname = "wayqt";
version = "0.1.99";

src = fetchFromGitLab {
owner = "desktop-frameworks";
repo = "wayqt";
rev = "v${finalAttrs.version}";
hash = "sha256-MaA6qXSZ1h4G8DY2G7+7J2Xntm8ekId19t1oYz0yYW8=";
};

nativeBuildInputs = [
meson
pkg-config
qttools
ninja
];

buildInputs = [
qtbase
wlroots
wayland
];

mesonFlags = [
"-Duse_qt_version=qt6"
];

dontWrapQtApps = true;

outputs = [ "out" "dev" ];

meta = {
homepage = "https://gitlab.com/desktop-frameworks/wayqt";
description = "Qt-based library to handle Wayland and Wlroots protocols to be used with any Qt project";
maintainers = with lib.maintainers; [ atemu rewine ];
platforms = lib.platforms.linux;
license = lib.licenses.mit;
};
})
4 changes: 4 additions & 0 deletions pkgs/top-level/qt6-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ in
qt6Support = true;
suffix = "qt6";
};

wayqt = callPackage ../development/libraries/wayqt {
wlroots = pkgs.wlroots_0_16;
};
})))

0 comments on commit de3b480

Please sign in to comment.