mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 07:05:58 +01:00
Nix: use propagatedBuildInputs instead of wrapping
This way, users that want to wrap Hyprland themselves won't have the issues of double-wrapping.
This commit is contained in:
parent
95769a3c54
commit
ce072638e9
1 changed files with 7 additions and 8 deletions
|
@ -93,6 +93,13 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov
|
||||||
++ lib.optionals enableXWayland [libxcb xcbutilwm xwayland]
|
++ lib.optionals enableXWayland [libxcb xcbutilwm xwayland]
|
||||||
++ lib.optionals withSystemd [systemd];
|
++ lib.optionals withSystemd [systemd];
|
||||||
|
|
||||||
|
# avoid wrapping
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
stdenv.cc
|
||||||
|
binutils
|
||||||
|
pciutils
|
||||||
|
];
|
||||||
|
|
||||||
mesonBuildType =
|
mesonBuildType =
|
||||||
if debug
|
if debug
|
||||||
then "debug"
|
then "debug"
|
||||||
|
@ -132,14 +139,6 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
ln -s ${wlroots}/include/wlr $dev/include/hyprland/wlroots
|
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"];
|
passthru.providedSessions = ["hyprland"];
|
||||||
|
|
Loading…
Reference in a new issue