From d40add3bc57e399983d0f9c3cbab64668c005129 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 13 Jun 2023 22:25:02 +0000 Subject: [PATCH] sway: remove unused build inputs (#237625) None of these have been used since before Sway 1.0. --- pkgs/applications/window-managers/sway/default.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/window-managers/sway/default.nix b/pkgs/applications/window-managers/sway/default.nix index 01506b391dfa..d1192e700c50 100644 --- a/pkgs/applications/window-managers/sway/default.nix +++ b/pkgs/applications/window-managers/sway/default.nix @@ -1,23 +1,21 @@ { lib, stdenv, fetchFromGitHub, fetchpatch, substituteAll, swaybg , meson, ninja, pkg-config, wayland-scanner, scdoc , wayland, libxkbcommon, pcre2, json_c, libevdev -, pango, cairo, libinput, libcap, pam, gdk-pixbuf, librsvg +, pango, cairo, libinput, gdk-pixbuf, librsvg , wlroots_0_16, wayland-protocols, libdrm , nixosTests # Used by the NixOS module: , isNixOS ? false , enableXWayland ? true, xorg , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd -, dbusSupport ? true -, dbus -, trayEnabled ? systemdSupport && dbusSupport +, trayEnabled ? systemdSupport }: # The "sd-bus-provider" meson option does not include a "none" option, # but it is silently ignored iff "-Dtray=disabled". We use "basu" # (which is not in nixpkgs) instead of "none" to alert us if this # changes: https://github.com/swaywm/sway/issues/6843#issuecomment-1047288761 -assert trayEnabled -> systemdSupport && dbusSupport; +assert trayEnabled -> systemdSupport; let sd-bus-provider = if systemdSupport then "libsystemd" else "basu"; in stdenv.mkDerivation rec { @@ -65,11 +63,9 @@ stdenv.mkDerivation rec { buildInputs = [ wayland libxkbcommon pcre2 json_c libevdev - pango cairo libinput libcap pam gdk-pixbuf librsvg + pango cairo libinput gdk-pixbuf librsvg wayland-protocols libdrm (wlroots_0_16.override { inherit enableXWayland; }) - ] ++ lib.optionals dbusSupport [ - dbus ] ++ lib.optionals enableXWayland [ xorg.xcbutilwm ];