Compare commits

...

1 commit

View file

@ -39,6 +39,32 @@
WorkingDir = "/state"; WorkingDir = "/state";
}; };
}; };
cross = flake-utils.lib.eachDefaultSystem (crossSystem:
let
pkgs = import nixpkgs {
localSystem = system;
inherit crossSystem;
};
in
{
default = pkgs.python311Packages.buildPythonApplication {
pname = "aci-backend";
inherit version;
propagatedBuildInputs = dependencies pkgs.python311Packages;
src = ./backend;
};
docker = pkgs.dockerTools.buildLayeredImage {
name = self.packages.${system}.cross.default.${crossSystem}.pname;
tag = "latest";
contents = [ self.packages.${system}.cross.default.${crossSystem} pkgs.busybox ];
config = {
Cmd = [ "/bin/app.py" ];
WorkingDir = "/state";
};
};
});
}; };
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [