Skip to content

Commit

Permalink
Nix & Meson: switch to wlroots-hyprland
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Apr 12, 2024
1 parent 382b6d3 commit d8d0d3b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 22 deletions.
22 changes: 10 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
systems.url = "github:nix-systems/default-linux";

wlroots = {
type = "gitlab";
host = "gitlab.freedesktop.org";
owner = "wlroots";
repo = "wlroots";
type = "github";
owner = "hyprwm";
repo = "wlroots-hyprland";
rev = "62eeffbe233d199f520a5755c344e85f8eab7940";
flake = false;
};
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if cpp_compiler.check_header('execinfo.h')
add_project_arguments('-DHAS_EXECINFO', language: 'cpp')
endif

wlroots = subproject('wlroots', default_options: ['examples=false', 'renderers=gles2'])
wlroots = subproject('wlroots-hyprland', default_options: ['examples=false', 'renderers=gles2'])
have_xwlr = wlroots.get_variable('features').get('xwayland')
xcb_dep = dependency('xcb', required: get_option('xwayland'))

Expand Down
7 changes: 4 additions & 3 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
wayland,
wayland-protocols,
wayland-scanner,
wlroots,
wlroots-hyprland,
xcbutilwm,
xwayland,
debug ? false,
Expand All @@ -47,7 +47,7 @@
assert lib.assertMsg (!nvidiaPatches) "The option `nvidiaPatches` has been removed.";
assert lib.assertMsg (!enableNvidiaPatches) "The option `enableNvidiaPatches` has been removed.";
assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been removed. Please refer https://wiki.hyprland.org/Configuring/XWayland"; let
wlr = wlroots.override {inherit enableXWayland;};
wlr = wlroots-hyprland.override {inherit enableXWayland;};
in
stdenv.mkDerivation {
pname = "hyprland${lib.optionalString debug "-debug"}";
Expand Down Expand Up @@ -101,7 +101,8 @@ in
];

buildInputs =
[
wlr.buildInputs
++ [
cairo
git
hyprcursor.dev
Expand Down
2 changes: 1 addition & 1 deletion nix/overlays.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ in {
stdenv = final.gcc13Stdenv;
version = "${props.version}+date=${date}_${self.shortRev or "dirty"}";
commit = self.rev or "";
wlroots = final.wlroots-hyprland; # explicit override until decided on breaking change of the name
udis86 = final.udis86-hyprland; # explicit override until decided on breaking change of the name
inherit (final) wlroots-hyprland; # explicit override until decided on breaking change of the name
inherit date;
};
hyprland-unwrapped = final.hyprland.override {wrapRuntimeDeps = false;};
Expand Down
2 changes: 1 addition & 1 deletion nix/patches/meson-build.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ index 1d2c7f9f..c5ef4e67 100644
add_project_arguments('-DHAS_EXECINFO', language: 'cpp')
endif

-wlroots = subproject('wlroots', default_options: ['examples=false', 'renderers=gles2'])
-wlroots = subproject('wlroots-hyprland', default_options: ['examples=false', 'renderers=gles2'])
-have_xwlr = wlroots.get_variable('features').get('xwayland')
-xcb_dep = dependency('xcb', required: get_option('xwayland'))
-
Expand Down

0 comments on commit d8d0d3b

Please sign in to comment.