Compare commits
1 commit
main
...
jank-cross
Author | SHA1 | Date | |
---|---|---|---|
f2bfefca39 |
1 changed files with 26 additions and 0 deletions
26
flake.nix
26
flake.nix
|
@ -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; [
|
||||||
|
|
Loading…
Reference in a new issue