Skip to content
Snippets Groups Projects
Commit 28a34cdd authored by Tom Prince's avatar Tom Prince
Browse files

Expose only the `PaymentServer` executable via ourpkgs.zkapissuer.

parent ce5d7edc
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ in {
options = {
services.private-storage-issuer.enable = lib.mkEnableOption "PrivateStorage ZKAP Issuer Service";
services.private-storage-issuer.package = lib.mkOption {
default = ourpkgs.zkapissuer.components.exes."PaymentServer-exe";
default = ourpkgs.zkapissuer;
type = lib.types.package;
example = lib.literalExample "pkgs.zkapissuer.components.exes.\"PaymentServer-exe\"";
description = ''
......@@ -172,7 +172,7 @@ in {
"--stripe-endpoint-scheme ${cfg.stripeEndpointScheme} " +
"--stripe-endpoint-port ${toString cfg.stripeEndpointPort}";
in
"${cfg.package}/bin/PaymentServer-exe ${originArgs} ${issuerArgs} ${databaseArgs} ${httpsArgs} ${stripeArgs}";
"${cfg.package.exePath} ${originArgs} ${issuerArgs} ${databaseArgs} ${httpsArgs} ${stripeArgs}";
};
# Certificate renewal. A short-lived service meant to be repeatedly
......
{ callPackage }:
let
repo = callPackage ./repo.nix { };
PaymentServer = (import "${repo}/nix").PaymentServer;
in
(import "${repo}/nix").PaymentServer
PaymentServer.components.exes."PaymentServer-exe"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment