mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 07:25:59 +01:00
Nix: add wrapping back
Ref: https://github.com/hyprwm/hyprland-plugins/issues/93
This commit is contained in:
parent
dc44bd7113
commit
d00c658405
3 changed files with 12 additions and 7 deletions
|
@ -79,6 +79,7 @@
|
||||||
hyprland
|
hyprland
|
||||||
hyprland-debug
|
hyprland-debug
|
||||||
hyprland-legacy-renderer
|
hyprland-legacy-renderer
|
||||||
|
hyprland-unwrapped
|
||||||
# hyprland-extras
|
# hyprland-extras
|
||||||
|
|
||||||
xdg-desktop-portal-hyprland
|
xdg-desktop-portal-hyprland
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
enableXWayland ? true,
|
enableXWayland ? true,
|
||||||
legacyRenderer ? false,
|
legacyRenderer ? false,
|
||||||
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
|
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
|
||||||
|
wrapRuntimeDeps ? true,
|
||||||
version ? "git",
|
version ? "git",
|
||||||
commit,
|
commit,
|
||||||
date,
|
date,
|
||||||
|
@ -94,13 +95,6 @@ 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"
|
||||||
|
@ -140,6 +134,15 @@ 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"];
|
||||||
|
|
|
@ -38,6 +38,7 @@ in {
|
||||||
udis86 = final.udis86-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 date;
|
inherit date;
|
||||||
};
|
};
|
||||||
|
hyprland-unwrapped = final.hyprland.override {wrapRuntimeDeps = false;};
|
||||||
hyprland-debug = final.hyprland.override {debug = true;};
|
hyprland-debug = final.hyprland.override {debug = true;};
|
||||||
hyprland-legacy-renderer = final.hyprland.override {legacyRenderer = true;};
|
hyprland-legacy-renderer = final.hyprland.override {legacyRenderer = true;};
|
||||||
hyprland-nvidia =
|
hyprland-nvidia =
|
||||||
|
|
Loading…
Reference in a new issue