improvement
This commit is contained in:
@@ -351,14 +351,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
flake.wrappers = {
|
flake.wrappers = {
|
||||||
mtlsCheck = inputs.wrappers.lib.wrapModule ({ config, lib, wlib, ... }:
|
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 {
|
|
||||||
options = {
|
options = {
|
||||||
bundleFile = lib.mkOption {
|
bundleFile = lib.mkOption {
|
||||||
description = "String path for the mTLS key bundle";
|
description = "String path for the mTLS key bundle";
|
||||||
@@ -368,8 +361,12 @@ in
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
binName = "mtls-check";
|
binName = "mtls-check";
|
||||||
package = singleOutputOpenSSL;
|
# This pattern is necessary to wrap packages like openssl that provide more than one binary
|
||||||
exePath = "${singleOutputOpenSSL}/bin/openssl";
|
package = config.pkgs.symlinkJoin {
|
||||||
|
name = "openssl";
|
||||||
|
paths = [ config.pkgs.openssl.bin config.pkgs.openssl.man ];
|
||||||
|
meta.mainProgram = "openssl";
|
||||||
|
};
|
||||||
args = [
|
args = [
|
||||||
"x509"
|
"x509"
|
||||||
"-noout"
|
"-noout"
|
||||||
|
|||||||
Reference in New Issue
Block a user