improvement

This commit is contained in:
John Lancaster
2026-04-30 16:36:38 -05:00
parent f0eba76e49
commit 68483c0231
+7 -10
View File
@@ -351,14 +351,7 @@ in
};
flake.wrappers = {
mtlsCheck = inputs.wrappers.lib.wrapModule ({ config, lib, wlib, ... }:
let
singleOutputOpenSSL = config.pkgs.symlinkJoin {
name = "openssl";
paths = [ config.pkgs.openssl.bin config.pkgs.openssl.man ];
meta.mainProgram = "openssl";
};
in {
mtlsCheck = inputs.wrappers.lib.wrapModule ({ config, lib, wlib, ... }: {
options = {
bundleFile = lib.mkOption {
description = "String path for the mTLS key bundle";
@@ -368,8 +361,12 @@ in
config = {
binName = "mtls-check";
package = singleOutputOpenSSL;
exePath = "${singleOutputOpenSSL}/bin/openssl";
# This pattern is necessary to wrap packages like openssl that provide more than one binary
package = config.pkgs.symlinkJoin {
name = "openssl";
paths = [ config.pkgs.openssl.bin config.pkgs.openssl.man ];
meta.mainProgram = "openssl";
};
args = [
"x509"
"-noout"