diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-15 04:57:37 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-15 05:16:51 +0900 |
| commit | 4ffeec3004607b76f73e504da220a1490c598348 (patch) | |
| tree | 68cca16c22814b13974db0f19c151f8eb31e2dae /cmd/hpkg/build.nix | |
| parent | 9ed3ba85eaba4bc4bd12b290dc4daf00ffe159dc (diff) | |
hst/enablement: editor friendly enablement adaptor
Having the bit field value here (in decimal, no less) is unfriendly to text editors. Use a bunch of booleans here to improve ease of use.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/hpkg/build.nix')
| -rw-r--r-- | cmd/hpkg/build.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/hpkg/build.nix b/cmd/hpkg/build.nix index 13f3144f..3733f420 100644 --- a/cmd/hpkg/build.nix +++ b/cmd/hpkg/build.nix @@ -171,7 +171,12 @@ let broadcast = { }; }); - enablements = (if allow_wayland then 1 else 0) + (if allow_x11 then 2 else 0) + (if allow_dbus then 4 else 0) + (if allow_pulse then 8 else 0); + enablements = { + wayland = allow_wayland; + x11 = allow_x11; + dbus = allow_dbus; + pulse = allow_pulse; + }; mesa = if gpu then mesaWrappers else null; nix_gl = if gpu then nixGL else null; |
