Skip to content

vmTools.runInLinuxVM fails upon __structuredAttrs = true, complaining mkdir: missing operand #334705

@ShamrockLee

Description

@ShamrockLee

Describe the bug

When passing a derivation with __structuredAttrs = true to vmTools.runInLinuxVM and building the resulting derivation, the build fails with a confusing error message:

mkdir: missing operand
Try 'mkdir --help' for more information.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Run
nix-build --no-out-link --expr "with (import ./. { }); vmTools.runInLinuxVM (hello.overrideAttrs { __structuredAttrs = true; })"
  1. See error.

Expected behavior

Derivations with __structuredAttrs = true modified by vmTools.runInLinuxVM build without error.

Additional context

I checked all the mkdir commands inside pkgs/build-support/vm, none of which seems to have a possibly-missing path.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.37, NixOS, 24.05 (Uakari), 24.05.20240707.1948467`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.4`
 - nixpkgs: `/nix/store/k251vbbhlk91xwjkxnma7g545i5avhah-source`

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions