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 <deny.toml> 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.
This commit is contained in:
LGUG2Z committed 2026-11-05 15:03:27 -08:00
1 parent 2ba338347c
commit 1fe07c6736
1 file changed
+4 -2
+4 -2
View File
@@ -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";
}
);