From df7f0eec6adc2d503caeaa0a05d5d1d653654c95 Mon Sep 17 00:00:00 2001 From: Parthiv Seetharaman Date: Sat, 23 Apr 2022 16:53:11 -0700 Subject: use meta.mainProgram before pname to infer command --- modules/matrix-appservices/as-formats.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/matrix-appservices/as-formats.nix') diff --git a/modules/matrix-appservices/as-formats.nix b/modules/matrix-appservices/as-formats.nix index fa7a4cf..0f4e7c2 100644 --- a/modules/matrix-appservices/as-formats.nix +++ b/modules/matrix-appservices/as-formats.nix @@ -7,7 +7,7 @@ let homeserverDomain; package = asConfig.package; pname = getName package; - command = "${package}/bin/${pname}"; + command = "${package}/bin/${package.meta.mainProgram or pname}"; mautrix = { startupScript = '' -- cgit v1.2.3