From 1c8f2099d88650d5c322acc1972dc946d836f513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 9 Apr 2026 01:04:26 +0200 Subject: [PATCH] uim: remove null from inputs Those packages are never undefined and if they would, that would be a bug, hence we can remove that outdated pattern. --- pkgs/by-name/ui/uim/package.nix | 36 ++++++++++----------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/pkgs/by-name/ui/uim/package.nix b/pkgs/by-name/ui/uim/package.nix index 36e96c610829..897ae44d915e 100644 --- a/pkgs/by-name/ui/uim/package.nix +++ b/pkgs/by-name/ui/uim/package.nix @@ -16,46 +16,32 @@ m17n_db, expat, withAnthy ? true, - anthy ? null, + anthy, withGtk ? true, withGtk2 ? withGtk, - gtk2 ? null, + gtk2, withGtk3 ? withGtk, - gtk3 ? null, + gtk3, # Was never enabled in the history of this package and is not needed by any # dependent package, hence disabled to save up closure size. withQt ? false, withQt5 ? withQt, - qt5 ? null, + qt5, withLibnotify ? true, - libnotify ? null, + libnotify, withSqlite ? true, - sqlite ? null, + sqlite, withNetworking ? true, - curl ? null, - openssl ? null, + curl, + openssl, withFFI ? true, - libffi ? null, + libffi, # Things that are clearly an overkill to be enabled by default withMisc ? false, - libeb ? null, + libeb, }: -let - automake = automake116x; -in - -assert withGtk2 -> gtk2 != null; -assert withGtk3 -> gtk3 != null; - -assert withAnthy -> anthy != null; -assert withLibnotify -> libnotify != null; -assert withSqlite -> sqlite != null; -assert withNetworking -> curl != null && openssl != null; -assert withFFI -> libffi != null; -assert withMisc -> libeb != null; - stdenv.mkDerivation (finalAttrs: { version = "1.9.6"; pname = "uim"; @@ -70,7 +56,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ autoconf - automake + automake116x intltool libtool pkg-config