Nix: add wrapping back

Ref: https://github.com/hyprwm/hyprland-plugins/issues/93
This commit is contained in:
Mihai Fufezan
2024-03-15 10:11:56 +02:00
parent dc44bd7113
commit d00c658405
3 changed files with 12 additions and 7 deletions
+1
View File
@@ -79,6 +79,7 @@
hyprland
hyprland-debug
hyprland-legacy-renderer
hyprland-unwrapped
# hyprland-extras
xdg-desktop-portal-hyprland
+10 -7
View File
@@ -33,6 +33,7 @@
enableXWayland ? true,
legacyRenderer ? false,
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
wrapRuntimeDeps ? true,
version ? "git",
commit,
date,
@@ -94,13 +95,6 @@ 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"
@@ -140,6 +134,15 @@ 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"];
+1
View File
@@ -38,6 +38,7 @@ in {
udis86 = final.udis86-hyprland; # explicit override until decided on breaking change of the name
inherit date;
};
hyprland-unwrapped = final.hyprland.override {wrapRuntimeDeps = false;};
hyprland-debug = final.hyprland.override {debug = true;};
hyprland-legacy-renderer = final.hyprland.override {legacyRenderer = true;};
hyprland-nvidia =