mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-09 03:26:27 +02:00
Add dev/prod conditions in the nix files
This commit is contained in:
parent
b8e2af412e
commit
97fd8a16d4
3 changed files with 60 additions and 42 deletions
16
flake.nix
16
flake.nix
|
@ -6,9 +6,16 @@
|
|||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
baseContainer = (import ./api {
|
||||
inherit pkgs;
|
||||
nosocket = self.legacyPackages."${system}".nosocket;
|
||||
_nosocket = self.legacyPackages."${system}".nosocket;
|
||||
_devContainer = (import ./api {
|
||||
inherit pkgs _nosocket;
|
||||
nosocket = _nosocket;
|
||||
appEnv = "dev";
|
||||
}).container;
|
||||
_prodContainer = (import ./api {
|
||||
inherit pkgs _nosocket;
|
||||
nosocket = _nosocket;
|
||||
appEnv = "prod";
|
||||
}).container;
|
||||
args = {
|
||||
inherit pkgs;
|
||||
|
@ -74,6 +81,7 @@
|
|||
piston = (import ./api { inherit pkgs nosocket; }).package;
|
||||
};
|
||||
|
||||
container = baseContainer;
|
||||
devContainer = _devContainer;
|
||||
prodContainer = _prodContainer;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue