From 1fe07c6736b9759cef30431da5162d7911e3fd28 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 31 Oct 2026 23:52:41 -0700 Subject: [PATCH] fix(nix): pass --config before check in the KDE deny check The KDE deny check failed with `error: unexpected argument '--config' found`: the flake wrote `cargo deny ... check --config bans licenses sources`, and in cargo-deny 0.20.2 (the one of the pinned kfde-nixpkgs) --config is an option of `cargo deny` itself, not of `check`. It now goes into cargoDenyExtraArgs, before `check`. Verified: cargo deny 0.20.2 from nixpkgs f05535a0 (the flake's pin) with the flake's --exclude list, `--config komorebi-for-kde/deny.toml check bans licenses sources`: bans ok, licenses ok, sources ok (the clarify entries and the komorebi-bar-core exclusion of the previous fix are enough, also for komorebi-daemon, komorebi-settings and the wgpu stack). Not built in nix. --- komorebi-for-kde/flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/komorebi-for-kde/flake.nix b/komorebi-for-kde/flake.nix index a1c4fc83..59bf0df4 100644 --- a/komorebi-for-kde/flake.nix +++ b/komorebi-for-kde/flake.nix @@ -387,8 +387,10 @@ "komorebi-client-macos" "komorebi-bar-macos" "version-macos" - ]; - cargoDenyChecks = "--config ${platformDir}/deny.toml bans licenses sources"; + ] + # --config is an option of `cargo deny`, not of `check`, in the cargo-deny of this flake's nixpkgs + + " --config ${platformDir}/deny.toml"; + cargoDenyChecks = "bans licenses sources"; } );