improve flake

This commit is contained in:
Quentin 2023-04-06 18:35:13 +02:00
parent 0b3c704fab
commit e09714fecf
Signed by: quentin
GPG key ID: E9602264D639FF68

View file

@ -38,8 +38,9 @@
cp `find ${gopkg arch}/bin -name albatros` $out
'';
};
docker = staticBin: pkgs.dockerTools.buildImage {
docker = staticBin: arch: pkgs.dockerTools.buildImage {
name = "dxflrs/albatros";
architecture = arch;
config = {
Cmd = [ "${staticBin}" ];
};
@ -47,11 +48,11 @@
in
{
packages.aarch64-linux.albatros = albatros "arm64" ;
packages.aarch64-linux.docker.albatros = docker self.packages.aarch64-linux.albatros;
packages.aarch64-linux.docker.albatros = docker self.packages.aarch64-linux.albatros "arm64";
packages.aarch64-linux.default = self.packages.aarch64-linux.albatros;
packages.x86_64-linux.albatros = albatros "amd64";
packages.x86_64-linux.docker.albatros = docker self.packages.x86_64-linux.albatros;
packages.x86_64-linux.docker.albatros = docker self.packages.x86_64-linux.albatros "amd64";
packages.x86_64-linux.default = self.packages.x86_64-linux.albatros;
devShell.x86_64-linux = pkgs.mkShell { buildInputs = [ pkgs.kaniko pkgs.manifest-tool ]; };