From 1778d761176f7c415205a7c383a77c5f024e7845 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 23 Feb 2020 23:51:14 +0100 Subject: [PATCH] arion-base: buildLayeredImage -> buildImage to avoid build error buildLayeredImage doesn't work when the number of nix store layers is 0. This may be fixed by pull https://github.com/NixOS/nixpkgs/pull/80921/files but meanwhile, plain buildImage will do the job. --- src/nix/modules/composition/arion-base-image.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/modules/composition/arion-base-image.nix b/src/nix/modules/composition/arion-base-image.nix index 132bc4c..890c60b 100644 --- a/src/nix/modules/composition/arion-base-image.nix +++ b/src/nix/modules/composition/arion-base-image.nix @@ -10,7 +10,7 @@ let tag = lib.head (lib.strings.splitString "-" (baseNameOf builtImage.outPath)); name = "arion-base"; - builtImage = pkgs.dockerTools.buildLayeredImage { + builtImage = pkgs.dockerTools.buildImage { inherit name; contents = pkgs.runCommand "minimal-contents" {} '' mkdir -p $out/bin $out/usr/bin