diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2024-02-01 05:44:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-01 05:44:38 -0500 |
commit | 170d8d9b6effb621260bf1cbe257f73b7c67a717 (patch) | |
tree | 678da893662ad85aabac81769fde9178d17790be /pkgs/development | |
parent | 3ada8a22ba0673d7284f5a269c0238943d254f8f (diff) | |
parent | 52fbbf1d78e03210990c76106d00a3932cfbdac3 (diff) |
Merge pull request #285506 from wineee/waylib
qt6Packages.waylib: init at 0.1.1
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/waylib/default.nix | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/pkgs/development/libraries/waylib/default.nix b/pkgs/development/libraries/waylib/default.nix new file mode 100644 index 0000000000000..9aa211ffd3e08 --- /dev/null +++ b/pkgs/development/libraries/waylib/default.nix @@ -0,0 +1,74 @@ +{ stdenv +, lib +, fetchFromGitHub +, cmake +, pkg-config +, wayland-scanner +, wrapQtAppsHook +, qtbase +, qtquick3d +, qwlroots +, wayland +, wayland-protocols +, wlr-protocols +, pixman +, libdrm +, nixos-artwork +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "waylib"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "vioken"; + repo = "waylib"; + rev = finalAttrs.version; + hash = "sha256-3IdrChuXQyQGhJ/7kTqmkV0PyuSNP53Y0Po01Fc9Qi0="; + }; + + postPatch = '' + substituteInPlace examples/tinywl/OutputDelegate.qml \ + --replace "/usr/share/wallpapers/deepin/desktop.jpg" \ + "${nixos-artwork.wallpapers.simple-blue}/share/backgrounds/nixos/nix-wallpaper-simple-blue.png" + ''; + + nativeBuildInputs = [ + cmake + pkg-config + wayland-scanner + wrapQtAppsHook + ]; + + buildInputs = [ + qtbase + qtquick3d + wayland + wayland-protocols + wlr-protocols + pixman + libdrm + ]; + + propagatedBuildInputs = [ + qwlroots + ]; + + cmakeFlags = [ + (lib.cmakeBool "INSTALL_TINYWL" true) + ]; + + strictDeps = true; + + outputs = [ "out" "dev" "bin" ]; + + meta = { + description = "A wrapper for wlroots based on Qt"; + homepage = "https://github.com/vioken/waylib"; + license = with lib.licenses; [ gpl3Only lgpl3Only asl20 ]; + outputsToInstall = [ "out" ]; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ rewine ]; + }; +}) + |