From f66a006710b3c45731439d4f48110a5db73747fe Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Tue, 26 Mar 2024 17:08:40 +0100 Subject: [PATCH] Use environment in openapi builder --- modules/cog.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cog.nix b/modules/cog.nix index a7edb8d..7e5dd83 100644 --- a/modules/cog.nix +++ b/modules/cog.nix @@ -157,7 +157,7 @@ in { lock = { inherit (config.python-env.public.config.lock) fields invalidationData; }; - openapi-spec = lib.mkDefault (pkgs.runCommand "openapi.json" {} '' + openapi-spec = lib.mkDefault (pkgs.runCommand "openapi.json" cognixcfg.environment '' cd ${entirePackage}/src ${pyEnvWithPip}/bin/python -m cog.command.openapi_schema > $out '');