aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2023-12-06 23:55:04 +0200
committerVaxry <[email protected]>2023-12-06 23:31:04 +0000
commit657cee2b98f7b085a384aba41d24bfd4177999f8 (patch)
treeb5009ec851c349f0ed924b6660750eef94396e7c
parent6e3c90908727b638ecf914be1a10baa26fe2c08b (diff)
downloadHyprland-657cee2b98f7b085a384aba41d24bfd4177999f8.tar.gz
Hyprland-657cee2b98f7b085a384aba41d24bfd4177999f8.zip
Nix & Meson: add hyprpm
-rw-r--r--hyprpm/src/meson.build10
-rw-r--r--meson.build1
-rw-r--r--nix/default.nix8
3 files changed, 16 insertions, 3 deletions
diff --git a/hyprpm/src/meson.build b/hyprpm/src/meson.build
new file mode 100644
index 00000000..0adae7aa
--- /dev/null
+++ b/hyprpm/src/meson.build
@@ -0,0 +1,10 @@
+globber = run_command('sh', '-c', 'find . -name "*.cpp" | sort', check: true)
+src = globber.stdout().strip().split('\n')
+
+executable('hyprpm', src,
+ dependencies: [
+ dependency('threads'),
+ dependency('tomlplusplus')
+ ],
+ install : true
+)
diff --git a/meson.build b/meson.build
index de29528e..81d6e403 100644
--- a/meson.build
+++ b/meson.build
@@ -80,6 +80,7 @@ endforeach
subdir('protocols')
subdir('src')
subdir('hyprctl')
+subdir('hyprpm/src')
subdir('assets')
subdir('example')
subdir('docs')
diff --git a/nix/default.nix b/nix/default.nix
index 7ddeae94..68b1bb22 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -20,6 +20,7 @@
pango,
pciutils,
systemd,
+ tomlplusplus,
udis86,
wayland,
wayland-protocols,
@@ -81,19 +82,20 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov
buildInputs =
[
- git
cairo
+ git
hyprland-protocols
- libGL
libdrm_2_4_118
+ libGL
libinput
libxkbcommon
mesa
pango
+ pciutils
+ tomlplusplus
udis86
wayland
wayland-protocols
- pciutils
wlroots
]
++ lib.optionals enableXWayland [libxcb xcbutilwm xwayland]