summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-04-24 22:07:01 +0200
committerandromeda <andromeda@lenovo>2026-04-24 22:07:01 +0200
commit643cf49f77e64f00589bc16147be0afc95fc08cf (patch)
treea0055c97ba4d024e3c27d2679ddc5c4447ed6b0e /flake.nix
parent1b3c57972570f9e79c21a571b6cd1b3273ea3059 (diff)
rgfw
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix23
1 files changed, 21 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 8703c5a..ed67867 100644
--- a/flake.nix
+++ b/flake.nix
@@ -8,7 +8,6 @@
};
};
outputs = {
- self,
nixpkgs,
c3c,
...
@@ -24,9 +23,29 @@
src = ./.;
buildInputs = [
pkgs.c3c
- pkgs.libX11
+ pkgs.wayland-scanner
+ ];
+ nativeBuildInputs = [
+ pkgs.libxkbcommon
pkgs.libGL
+ pkgs.wayland
];
+ configurePhase = ''
+ wayland-scanner client-header ${pkgs.wayland-protocols}/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml include/xdg-shell.h
+ wayland-scanner client-header ${pkgs.wayland-protocols}/share/wayland-protocols/staging/pointer-warp/pointer-warp-v1.xml include/pointer-warp-v1.h
+ wayland-scanner client-header ${pkgs.wayland-protocols}/share/wayland-protocols/staging/xdg-toplevel-icon/xdg-toplevel-icon-v1.xml include/xdg-toplevel-icon-v1.h
+ wayland-scanner client-header ${pkgs.wayland-protocols}/share/wayland-protocols/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml include/xdg-decoration-unstable-v1.h
+ wayland-scanner client-header ${pkgs.wayland-protocols}/share/wayland-protocols/unstable/relative-pointer/relative-pointer-unstable-v1.xml include/relative-pointer-unstable-v1.h
+ wayland-scanner client-header ${pkgs.wayland-protocols}/share/wayland-protocols/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml include/pointer-constraints-unstable-v1.h
+ wayland-scanner client-header ${pkgs.wayland-protocols}/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml include/xdg-output-unstable-v1.h
+ wayland-scanner private-code ${pkgs.wayland-protocols}/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml xdg-shell.c
+ wayland-scanner private-code ${pkgs.wayland-protocols}/share/wayland-protocols/staging/pointer-warp/pointer-warp-v1.xml pointer-warp-v1.c
+ wayland-scanner private-code ${pkgs.wayland-protocols}/share/wayland-protocols/staging/xdg-toplevel-icon/xdg-toplevel-icon-v1.xml xdg-toplevel-icon-v1.c
+ wayland-scanner private-code ${pkgs.wayland-protocols}/share/wayland-protocols/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml xdg-decoration-unstable-v1.c
+ wayland-scanner private-code ${pkgs.wayland-protocols}/share/wayland-protocols/unstable/relative-pointer/relative-pointer-unstable-v1.xml relative-pointer-unstable-v1.c
+ wayland-scanner private-code ${pkgs.wayland-protocols}/share/wayland-protocols/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml pointer-constraints-unstable-v1.c
+ wayland-scanner private-code ${pkgs.wayland-protocols}/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml xdg-output-unstable-v1.c
+ '';
buildPhase = ''
c3c build
'';