Skip to content

Commit 8cc10d2

Browse files
committed
hooks: update deprecated lib.cli functions
1 parent f092770 commit 8cc10d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/hooks.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3948,10 +3948,10 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
39483948
let
39493949
inherit (hooks) rustfmt;
39503950
inherit (rustfmt) settings;
3951-
cargoArgs = lib.cli.toGNUCommandLineShell { } {
3951+
cargoArgs = lib.cli.toCommandLineShellGNU { } {
39523952
inherit (settings) all package verbose manifest-path;
39533953
};
3954-
rustfmtArgs = lib.cli.toGNUCommandLineShell { } {
3954+
rustfmtArgs = lib.cli.toCommandLineShellGNU { } {
39553955
inherit (settings) check emit config-path color files-with-diff config verbose;
39563956
};
39573957
in
@@ -4067,7 +4067,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
40674067
if builtins.stringLength k == 1
40684068
then "-${k}"
40694069
else "--${k}";
4070-
options = lib.cli.toGNUCommandLineShell
4070+
options = lib.cli.toCommandLineShellGNU
40714071
{
40724072
# instead of repeating the option name for each element,
40734073
# create a single option with a space-separated list of unique values.

0 commit comments

Comments
 (0)