improve flake
This commit is contained in:
parent
0b3c704fab
commit
e09714fecf
1 changed files with 4 additions and 3 deletions
|
@ -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 ]; };
|
||||
|
|
Loading…
Reference in a new issue