From 46c9af8a926b24e595ca7baf9eaa4c7d06415ae9 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 7 Jan 2026 22:17:40 -0600 Subject: [PATCH] fish: migrate to lib.cli.toCommandLineShell Replace deprecated lib.cli.toGNUCommandLineShell with the new lib.cli.toCommandLineShell API, migrating from the old mkOption parameter format to the new optionFormat function. Signed-off-by: Austin Horstman --- modules/programs/fish.nix | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/modules/programs/fish.nix b/modules/programs/fish.nix index 8ae9edf1..48ca7d1d 100644 --- a/modules/programs/fish.nix +++ b/modules/programs/fish.nix @@ -301,20 +301,13 @@ let let name = if isAttrs def && def.name != null then def.name else attrName; mods = - lib.cli.toGNUCommandLineShell - { - mkOption = - k: v: - if v == null then - [ ] - else if k == "set-cursor" then - [ "--${k}=${lib.generators.mkValueStringDefault { } v}" ] - else - [ - "--${k}" - (lib.generators.mkValueStringDefault { } v) - ]; - } + lib.cli.toCommandLineShell + (optionName: { + option = "--${optionName}"; + sep = if optionName == "set-cursor" then "=" else null; + explicitBool = false; + formatArg = lib.generators.mkValueStringDefault { }; + }) { inherit (def) position