Skip to content

Commit

Permalink
Merge pull request #214906 from alyssais/wayland-scanner
Browse files Browse the repository at this point in the history
wayland-scanner: split from wayland
  • Loading branch information
flokli authored Aug 12, 2024
2 parents d5dfcbc + 1120942 commit 0b09202
Show file tree
Hide file tree
Showing 55 changed files with 233 additions and 128 deletions.
3 changes: 2 additions & 1 deletion pkgs/applications/accessibility/squeekboard/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
, gtk3
, wayland
, wayland-protocols
, wayland-scanner
, libbsd
, libxml2
, libxkbcommon
Expand Down Expand Up @@ -44,7 +45,7 @@ stdenv.mkDerivation rec {
ninja
pkg-config
glib
wayland
wayland-scanner
wrapGAppsHook3
rustPlatform.cargoSetupHook
cargo
Expand Down
1 change: 0 additions & 1 deletion pkgs/applications/graphics/hello-wayland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ stdenv.mkDerivation {
};

separateDebugInfo = true;

depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ imagemagick pkg-config wayland-scanner ];
buildInputs = [ wayland wayland-protocols ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/kde/krfb.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ mkDerivation, lib
, extra-cmake-modules, kdoctools
, extra-cmake-modules, kdoctools, wayland-scanner
, kconfig, kcoreaddons, kcrash, kdbusaddons, kdnssd, knotifications, kwallet
, kwidgetsaddons, kwindowsystem, kxmlgui, kwayland, kpipewire
, libvncserver, libXtst, libXdamage
Expand All @@ -14,7 +14,7 @@ mkDerivation {
license = with lib.licenses; [ gpl2Plus fdl12Plus ];
maintainers = with lib.maintainers; [ jerith666 ];
};
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
nativeBuildInputs = [ extra-cmake-modules kdoctools wayland-scanner ];
buildInputs = [
libvncserver libXtst libXdamage
kconfig kcoreaddons kcrash kdbusaddons knotifications kwallet kwidgetsaddons
Expand Down
9 changes: 7 additions & 2 deletions pkgs/applications/misc/clight/clightd.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub
, dbus, cmake, pkg-config
, dbus, cmake, pkg-config, wayland-scanner
, glib, udev, polkit, libusb1, libjpeg, libmodule
, pcre, libXdmcp, util-linux, libpthreadstubs
, enableDdc ? true, ddcutil
Expand Down Expand Up @@ -40,13 +40,18 @@ stdenv.mkDerivation rec {
++ optional enableScreen "-DENABLE_SCREEN=1"
++ optional enableYoctolight "-DENABLE_YOCTOLIGHT=1";

depsBuildBuild = [
pkg-config
];

nativeBuildInputs = [
dbus
cmake
pkg-config
wayland-scanner
];

buildInputs = with lib; [
dbus
glib
udev
polkit
Expand Down
11 changes: 7 additions & 4 deletions pkgs/applications/misc/latte-dock/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{ mkDerivation, lib, cmake, xorg, plasma-framework, plasma-wayland-protocols, fetchFromGitLab
, extra-cmake-modules, karchive, kwindowsystem, qtx11extras, qtwayland, kcrash, knewstuff
, wayland, plasma-workspace, plasma-desktop }:
{ lib, mkDerivation, fetchFromGitLab
, cmake, extra-cmake-modules, karchive, kwindowsystem, qtx11extras, kcrash
, knewstuff, wayland-scanner
, plasma-framework, plasma-wayland-protocols, plasma-workspace, plasma-desktop, qtwayland
, wayland, xorg
}:

mkDerivation rec {
pname = "latte-dock";
Expand All @@ -17,7 +20,7 @@ mkDerivation rec {
buildInputs = [ plasma-framework plasma-wayland-protocols qtwayland xorg.libpthreadstubs xorg.libXdmcp xorg.libSM wayland plasma-workspace plasma-desktop ];

nativeBuildInputs = [ extra-cmake-modules cmake karchive kwindowsystem
qtx11extras kcrash knewstuff ];
qtx11extras kcrash knewstuff wayland-scanner ];

patches = [
./0001-Disable-autostart.patch
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/misc/maliit-framework/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
, doxygen
, pkg-config
, wayland-protocols
, wayland-scanner
}:

mkDerivation rec {
Expand Down Expand Up @@ -62,6 +63,7 @@ mkDerivation rec {
doxygen
pkg-config
wayland-protocols
wayland-scanner
];

preConfigure = ''
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/misc/phoc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
, ninja
, pkg-config
, python3
, wayland-scanner
, wrapGAppsHook3
, libinput
, gobject-introspection
Expand Down Expand Up @@ -40,6 +41,7 @@ stdenv.mkDerivation (finalAttrs: {
ninja
pkg-config
python3
wayland-scanner
wrapGAppsHook3
];

Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/misc/qt-video-wlr/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, pkg-config, meson, cmake, ninja, gst_all_1, wrapQtAppsHook, qtbase, qtmultimedia, layer-shell-qt }:
{ stdenv, lib, fetchFromGitHub, pkg-config, meson, cmake, ninja, gst_all_1, wrapQtAppsHook, qtbase, qtmultimedia, layer-shell-qt, wayland-scanner }:
let
gstreamerPath = with gst_all_1; lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
gstreamer
Expand All @@ -24,6 +24,7 @@ in stdenv.mkDerivation rec {
cmake # only used for find layer-shell-qt
ninja
wrapQtAppsHook
wayland-scanner
];

buildInputs = [
Expand Down
10 changes: 8 additions & 2 deletions pkgs/applications/misc/river-tag-overlay/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{ lib, stdenv, fetchFromSourcehut, fetchpatch
, wayland, pixman, pkg-config, wayland-scanner
{ lib
, stdenv
, fetchFromSourcehut
, fetchpatch
, wayland
, pixman
, pkg-config
, wayland-scanner
}:

stdenv.mkDerivation rec {
Expand Down
4 changes: 3 additions & 1 deletion pkgs/applications/misc/rofi/wayland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, fetchFromGitHub
, rofi-unwrapped
, wayland-scanner
, pkg-config
, wayland-protocols
, wayland
}:
Expand All @@ -18,7 +19,8 @@ rofi-unwrapped.overrideAttrs (oldAttrs: rec {
hash = "sha256-pKxraG3fhBh53m+bLPzCigRr6dBcH/A9vbdf67CO2d8=";
};

nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ wayland-scanner ];
depsBuildBuild = oldAttrs.depsBuildBuild ++ [ pkg-config ];
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ wayland-protocols wayland-scanner ];
buildInputs = oldAttrs.buildInputs ++ [ wayland wayland-protocols ];

meta = with lib; {
Expand Down
7 changes: 6 additions & 1 deletion pkgs/applications/misc/tofi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ stdenv.mkDerivation rec {

depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [
meson ninja pkg-config scdoc wayland-protocols wayland-scanner
meson
ninja
pkg-config
scdoc
wayland-protocols
wayland-scanner
];
buildInputs = [ freetype harfbuzz cairo pango wayland libxkbcommon ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/networking/remote/freerdp/3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ stdenv.mkDerivation (finalAttrs: {
fuse3
systemd
wayland
wayland-scanner
] ++ lib.optionals stdenv.isDarwin [
AudioToolbox
AVFoundation
Expand All @@ -160,7 +161,6 @@ stdenv.mkDerivation (finalAttrs: {
"-Wno-dev"
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DDOCBOOKXSL_DIR=${docbook-xsl-nons}/xml/xsl/docbook"
"-DWAYLAND_SCANNER=${buildPackages.wayland-scanner}/bin/wayland-scanner"
] ++ lib.mapAttrsToList (k: v: "-D${k}=${cmFlag v}") {
BUILD_TESTING = false; # false is recommended by upstream
WITH_CAIRO = (cairo != null);
Expand Down
1 change: 0 additions & 1 deletion pkgs/applications/networking/remote/freerdp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ stdenv.mkDerivation rec {
"-Wno-dev"
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DDOCBOOKXSL_DIR=${docbook-xsl-nons}/xml/xsl/docbook"
"-DWAYLAND_SCANNER=${buildPackages.wayland-scanner}/bin/wayland-scanner"
]
++ lib.mapAttrsToList (k: v: "-D${k}=${cmFlag v}") {
BUILD_TESTING = false; # false is recommended by upstream
Expand Down
5 changes: 5 additions & 0 deletions pkgs/applications/terminal-emulators/kitty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
, UserNotifications
, libcanberra
, libicns
, wayland-scanner
, libpng
, python3
, zlib
Expand Down Expand Up @@ -84,8 +85,12 @@ buildPythonApplication rec {
] ++ lib.optionals stdenv.isDarwin [
imagemagick
libicns # For the png2icns tool.
] ++ lib.optionals stdenv.isLinux [
wayland-scanner
];

depsBuildBuild = [ pkg-config ];

outputs = [ "out" "terminfo" "shell_integration" "kitten" ];

patches = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

, wayland
, wayland-protocols
, wayland-scanner

, pipewire
, pulseaudio
Expand Down Expand Up @@ -64,7 +65,7 @@ stdenv.mkDerivation (finalAttrs: {
./0001-client-cmake-move-X11-config-directives-to-displayse.patch
];

nativeBuildInputs = [ cmake pkg-config ];
nativeBuildInputs = [ cmake pkg-config wayland-scanner ];

buildInputs = [ libX11 libGL freefont_ttf spice-protocol expat libbfd nettle fontconfig libffi ]
++ lib.optionals xorgSupport [ libxkbcommon libXi libXScrnSaver libXinerama libXcursor libXpresent libXext libXrandr libXdmcp ]
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/window-managers/cagebreak/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
, systemd
, wayland
, wayland-protocols
, wayland-scanner
, withXwayland ? true , xwayland
, wlroots
}:
Expand All @@ -40,7 +41,7 @@ stdenv.mkDerivation rec {
ninja
pkg-config
scdoc
wayland
wayland-scanner
];

buildInputs = [
Expand Down
2 changes: 0 additions & 2 deletions pkgs/applications/window-managers/owl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
, darwin
}:

assert wayland.withLibraries;

let
stdenv = clangStdenv;
in
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/window-managers/phosh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
, ninja
, pkg-config
, python3
, wayland-scanner
, wrapGAppsHook4
, libadwaita
, libhandy
Expand Down Expand Up @@ -50,6 +51,7 @@ stdenv.mkDerivation (finalAttrs: {
ninja
pkg-config
python3
wayland-scanner
wrapGAppsHook4
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
, meson
, ninja
, pkg-config
, wayland-scanner
, wrapGAppsHook4
, desktop-file-utils
, feedbackd
Expand Down Expand Up @@ -34,6 +35,7 @@ stdenv.mkDerivation rec {
ninja
phosh
pkg-config
wayland-scanner
wrapGAppsHook4
];

Expand Down
2 changes: 2 additions & 0 deletions pkgs/by-name/ca/cardboard/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
, unzip
, wayland
, wayland-protocols
, wayland-scanner
, xcbutilerrors
, xcbutilimage
, xcbutilwm
Expand Down Expand Up @@ -79,6 +80,7 @@ stdenv.mkDerivation {
pandoc
pkg-config
unzip
wayland-scanner
];

buildInputs = [
Expand Down
6 changes: 4 additions & 2 deletions pkgs/by-name/ga/gamescope/package.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ stdenv
, buildPackages
, edid-decode
, fetchFromGitHub
, meson
Expand All @@ -12,6 +13,7 @@
, vulkan-headers
, wayland
, wayland-protocols
, wayland-scanner
, libxkbcommon
, glm
, gbenchmark
Expand All @@ -30,7 +32,6 @@
, lcms
, lib
, makeBinaryWrapper
, patchelfUnstable
, nix-update-script
, enableExecutable ? true
, enableWsi ? true
Expand Down Expand Up @@ -99,6 +100,7 @@ stdenv.mkDerivation (finalAttrs: {
] ++ lib.optionals enableExecutable [
makeBinaryWrapper
glslang
wayland-scanner
];

buildInputs = [
Expand Down Expand Up @@ -138,7 +140,7 @@ stdenv.mkDerivation (finalAttrs: {

postInstall = lib.optionalString enableExecutable ''
# using patchelf unstable because the stable version corrupts the binary
${lib.getExe patchelfUnstable} $out/bin/gamescope \
${lib.getExe buildPackages.patchelfUnstable} $out/bin/gamescope \
--add-rpath ${vulkan-loader}/lib --add-needed libvulkan.so.1
# --debug-layers flag expects these in the path
Expand Down
4 changes: 3 additions & 1 deletion pkgs/by-name/ri/river/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
, udev
, wayland
, wayland-protocols
, wayland-scanner
, wlroots_0_18
, xwayland
, zig_0_13
Expand All @@ -39,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: {

nativeBuildInputs = [
pkg-config
wayland
wayland-scanner
xwayland
zig_0_13.hook
]
Expand All @@ -52,6 +53,7 @@ stdenv.mkDerivation (finalAttrs: {
libxkbcommon
pixman
udev
wayland
wayland-protocols
wlroots_0_18
] ++ lib.optional xwaylandSupport libX11;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/vl/vlc/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
, unzip
, wayland
, wayland-protocols
, wayland-scanner
, wrapGAppsHook3
, writeShellScript
, xcbutilkeysyms
Expand Down Expand Up @@ -120,8 +121,7 @@ stdenv.mkDerivation (finalAttrs: {
++ optionals chromecastSupport [ protobuf ]
++ optionals withQt5 [ libsForQt5.wrapQtAppsHook ]
++ optionals waylandSupport [
wayland
wayland-protocols
wayland-scanner
];

# VLC uses a *ton* of libraries for various pieces of functionality, many of
Expand Down
Loading

0 comments on commit 0b09202

Please sign in to comment.