aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2024-03-07 10:59:24 +0200
committerMihai Fufezan <[email protected]>2024-03-07 11:02:18 +0200
commitce072638e9d86aac15c5ff4c6dd777b2894af422 (patch)
treed0a658e5f3e432d0c0e20c544d0eafa7e95c8b5c /nix
parent95769a3c54448e8e65b1bb0c3d4e7ff3bb9edaba (diff)
downloadHyprland-ce072638e9d86aac15c5ff4c6dd777b2894af422.tar.gz
Hyprland-ce072638e9d86aac15c5ff4c6dd777b2894af422.zip
Nix: use propagatedBuildInputs instead of wrapping
This way, users that want to wrap Hyprland themselves won't have the issues of double-wrapping.
Diffstat (limited to 'nix')
-rw-r--r--nix/default.nix15
1 files changed, 7 insertions, 8 deletions
diff --git a/nix/default.nix b/nix/default.nix
index 6062a215..66ea53a6 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -93,6 +93,13 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov
++ lib.optionals enableXWayland [libxcb xcbutilwm xwayland]
++ lib.optionals withSystemd [systemd];
+ # avoid wrapping
+ propagatedBuildInputs = [
+ stdenv.cc
+ binutils
+ pciutils
+ ];
+
mesonBuildType =
if debug
then "debug"
@@ -132,14 +139,6 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov
postInstall = ''
ln -s ${wlroots}/include/wlr $dev/include/hyprland/wlroots
- ${lib.optionalString wrapRuntimeDeps ''
- wrapProgram $out/bin/Hyprland \
- --suffix PATH : ${lib.makeBinPath [
- stdenv.cc
- binutils
- pciutils
- ]}
- ''}
'';
passthru.providedSessions = ["hyprland"];