Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: firewalld 2.4.0 -> 2.4.2 https://repology.org/project/firewalld/versions attrpath: firewalld Checking auto update branch... No auto update branch exists Old version 2.4.0" not present in master derivation file with contents: { lib, stdenv, fetchFromGitHub, autoconf, automake, docbook_xml_dtd_42, docbook-xsl-nons, glib, gobject-introspection, gtk3, intltool, ipset, iptables, kmod, libnotify, librsvg, libxml2, libxslt, networkmanager, pkg-config, python3, qt6, sysctl, wrapGAppsNoGuiHook, withGui ? false, nixosTests, }: let pythonPath = python3.withPackages ( ps: with ps; [ dbus-python nftables pygobject3 ] ++ lib.optionals withGui [ pyqt6 ] ); in stdenv.mkDerivation (finalAttrs: { pname = "firewalld"; version = "2.4.2"; __structuredAttrs = true; strictDeps = true; src = fetchFromGitHub { owner = "firewalld"; repo = "firewalld"; tag = "v${finalAttrs.version}"; hash = "sha256-RUDDUvpGfWEKI+VtC4SBMLKsAHkStV1qAYpHLQbN5HM="; }; patches = [ ./add-config-path-env-var.patch ./respect-xml-catalog-files-var.patch ./specify-localedir.patch ./gettext-0.25.patch ] ++ lib.optional withGui ./nm-connection-editor.patch; postPatch = '' substituteInPlace config/xmlschema/check.sh \ --replace-fail /usr/bin/ "" for file in src/{firewall-offline-cmd.in,firewall/config/__init__.py.in}; do substituteInPlace $file \ --replace-fail /usr "$out" done ''; nativeBuildInputs = [ autoconf automake docbook_xml_dtd_42 docbook-xsl-nons glib intltool libxml2 libxslt pkg-config python3 python3.pkgs.wrapPython wrapGAppsNoGuiHook ] ++ lib.optionals withGui [ qt6.wrapQtAppsHook ]; buildInputs = [ glib gobject-introspection ipset iptables kmod networkmanager pythonPath sysctl ] ++ lib.optionals withGui [ gtk3 libnotify librsvg qt6.qtbase ]; preConfigure = '' ./autogen.sh ''; ac_cv_path_MODPROBE = lib.getExe' kmod "modprobe"; ac_cv_path_RMMOD = lib.getExe' kmod "rmmod"; ac_cv_path_SYSCTL = lib.getExe' sysctl "sysctl"; configureFlags = [ "--with-iptables=${lib.getExe' iptables "iptables"}" "--with-iptables-restore=${lib.getExe' iptables "iptables-restore"}" "--with-ip6tables=${lib.getExe' iptables "ip6tables"}" "--with-ip6tables-restore=${lib.getExe' iptables "ip6tables-restore"}" "--with-ebtables=${lib.getExe' iptables "ebtables"}" "--with-ebtables-restore=${lib.getExe' iptables "ebtables-restore"}" "--with-ipset=${lib.getExe' ipset "ipset"}" ]; postInstall = '' rm -r $out/share/firewalld/testsuite '' + lib.optionalString (!withGui) '' rm $out/bin/firewall-{applet,config} ''; dontWrapGApps = true; dontWrapQtApps = true; preFixup = '' makeWrapperArgs+=("''${gappsWrapperArgs[@]}") '' + lib.optionalString withGui '' makeWrapperArgs+=("''${qtWrapperArgs[@]}") ''; postFixup = '' chmod +x $out/share/firewalld/*.py patchShebangs --host $out/share/firewalld/*.py wrapPythonProgramsIn "$out/bin" "$out ${pythonPath}" ''; passthru.tests = { inherit (nixosTests) firewalld firewall-firewalld; }; meta = { description = "Firewall daemon with D-Bus interface"; homepage = "https://firewalld.org"; downloadPage = "https://github.com/firewalld/firewalld/releases"; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ prince213 ]; platforms = lib.platforms.linux; }; })