Skip to content

Commit

Permalink
Use environment in openapi builder
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickvP committed Mar 26, 2024
1 parent 2d47375 commit f66a006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cog.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'');
Expand Down

0 comments on commit f66a006

Please sign in to comment.