aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2024-05-05 20:34:13 +0300
committerMihai Fufezan <[email protected]>2024-05-05 20:34:14 +0300
commitc7fbc30bfd64b2104006fef291f4c4bff537beb2 (patch)
tree3afb7c200e793568abf93a70cfe364a09f112ac3 /nix
parent1ed1ce9506e65f76fe5236194516f23d662bba0b (diff)
downloadHyprland-c7fbc30bfd64b2104006fef291f4c4bff537beb2.tar.gz
Hyprland-c7fbc30bfd64b2104006fef291f4c4bff537beb2.zip
Nix: add missing deps
CMake used to warn about these deps so I've added them. Also propagates wlroots' nativeBuildInputs.
Diffstat (limited to 'nix')
-rw-r--r--nix/default.nix49
1 files changed, 32 insertions, 17 deletions
diff --git a/nix/default.nix b/nix/default.nix
index e9d81fd7..4ab9c19d 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -10,6 +10,7 @@
binutils,
cairo,
expat,
+ fribidi,
git,
hyprcursor,
hyprland-protocols,
@@ -17,14 +18,19 @@
hyprwayland-scanner,
jq,
libGL,
+ libdatrie,
libdrm,
libexecinfo,
libinput,
+ libselinux,
+ libsepol,
+ libthai,
libuuid,
libxkbcommon,
mesa,
pango,
pciutils,
+ pcre2,
python3,
systemd,
tomlplusplus,
@@ -70,28 +76,31 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov
# Generate version.h
cp src/version.h.in src/version.h
substituteInPlace src/version.h \
- --replace "@HASH@" '${commit}' \
- --replace "@BRANCH@" "" \
- --replace "@MESSAGE@" "" \
- --replace "@DATE@" "${date}" \
- --replace "@TAG@" "" \
- --replace "@DIRTY@" '${
+ --replace-warn "@HASH@" '${commit}' \
+ --replace-warn "@BRANCH@" "" \
+ --replace-warn "@MESSAGE@" "" \
+ --replace-warn "@DATE@" "${date}" \
+ --replace-warn "@TAG@" "" \
+ --replace-warn "@DIRTY@" '${
if commit == ""
then "dirty"
else ""
}'
'';
- nativeBuildInputs = [
- hyprwayland-scanner
- jq
- makeWrapper
- cmake
- meson
- ninja
- pkg-config
- python3
- wayland-scanner
+ nativeBuildInputs = lib.concatLists [
+ [
+ hyprwayland-scanner
+ jq
+ makeWrapper
+ cmake
+ ninja
+ pkg-config
+ python3
+ wayland-scanner
+ ]
+ # introduce this later so that cmake takes precedence
+ wlroots.nativeBuildInputs
];
outputs = [
@@ -106,18 +115,24 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov
[
cairo
expat
+ fribidi
git
hyprcursor.dev
hyprland-protocols
hyprlang
- libdrm
libGL
+ libdrm
+ libdatrie
libinput
+ libselinux
+ libsepol
+ libthai
libuuid
libxkbcommon
mesa
pango
pciutils
+ pcre2
tomlplusplus
wayland
wayland-protocols