gitleaks: add gitleaks.toml configuration to package outputs

This commit is contained in:
Christian Friedow
2025-12-01 09:35:09 +01:00
parent 966a6d11ec
commit 2e6f5a78ea
+4 -1
View File
@@ -35,7 +35,10 @@ buildGoModule rec {
nativeCheckInputs = [ git ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
postInstall = ''
install -Dm444 config/gitleaks.toml $out/etc/gitleaks.toml
''
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd ${pname} \
--bash <($out/bin/${pname} completion bash) \
--fish <($out/bin/${pname} completion fish) \