From cc6290d072ab5bda904f8af8ff2e1bb9ff8a50d8 Mon Sep 17 00:00:00 2001 From: Raphael Borun Das Gupta Date: Sat, 16 May 2026 13:50:14 +0200 Subject: [PATCH] dockerTools.buildLayeredImage: fix configureFlags syntax in nixosTests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The string added to `configureFlags` for building `hello` for nixosTests example «layered image with files owned by a user other than root» had a leading space, leading to error configure flags: --disable-dependency-tracking --prefix=/nix/store/kwdkh22lfr3irggg076jpydbk1556iax-hello-2.12.3 \ --program-prefix=layeredImageWithFakeRootCommands- configure: error: invalid variable name: ' --program-prefix' when running `./configure` for that custom `hello`, making `nixosTests.allDrivers.docker-tools` fail. --- pkgs/build-support/docker/examples.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/docker/examples.nix b/pkgs/build-support/docker/examples.nix index 074e37b61d8c..a37cdd004c04 100644 --- a/pkgs/build-support/docker/examples.nix +++ b/pkgs/build-support/docker/examples.nix @@ -704,7 +704,7 @@ rec { finalAttrs: prevAttrs: { # A unique `hello` to make sure that it isn't included via another mechanism by accident. configureFlags = prevAttrs.configureFlags or [ ] ++ [ - " --program-prefix=layeredImageWithFakeRootCommands-" + "--program-prefix=layeredImageWithFakeRootCommands-" ]; doCheck = false; versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";