From 652cac382a47bc721e84552a2ef7d24e1df74721 Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Mon, 24 Mar 2025 17:52:10 +0800 Subject: [PATCH] firewalld: wrap non-gui programs with gtk --- pkgs/by-name/fi/firewalld/package.nix | 45 +++++++++++++-------------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/pkgs/by-name/fi/firewalld/package.nix b/pkgs/by-name/fi/firewalld/package.nix index 3f5fcf9f2d1c..9b4d85799135 100644 --- a/pkgs/by-name/fi/firewalld/package.nix +++ b/pkgs/by-name/fi/firewalld/package.nix @@ -69,41 +69,38 @@ stdenv.mkDerivation rec { --replace "/usr/bin/nm-connection-editor" "${networkmanagerapplet}/bin/nm-connection-editor" ''; - nativeBuildInputs = - [ - autoconf - automake - docbook_xml_dtd_42 - docbook-xsl-nons - glib - intltool - ipset - iptables - kmod - libxml2 - libxslt - pkg-config - python3 - python3.pkgs.wrapPython - sysctl - ] - ++ lib.optionals withGui [ - gobject-introspection - wrapGAppsNoGuiHook - ]; + nativeBuildInputs = [ + autoconf + automake + docbook_xml_dtd_42 + docbook-xsl-nons + glib + intltool + ipset + iptables + kmod + libxml2 + libxslt + pkg-config + python3 + python3.pkgs.wrapPython + sysctl + wrapGAppsNoGuiHook + ]; buildInputs = [ glib + gobject-introspection ipset iptables kmod + pythonPath sysctl ] ++ lib.optionals withGui [ gtk3 libnotify - pythonPath ]; preConfigure = '' @@ -116,7 +113,7 @@ stdenv.mkDerivation rec { dontWrapGApps = true; - preFixup = lib.optionalString withGui '' + preFixup = '' makeWrapperArgs+=("''${gappsWrapperArgs[@]}") '';