Skip to content

stdenv: structuredAttrs breaks phases when nested lists are present in inputs #422989

@K900

Description

@K900

Example:

let
  pkgs = import ./. { };
in
pkgs.stdenv.mkDerivation {
  pname = "example";
  version = "0.0.1";

  dontUnpack = true;

  __structuredAttrs = true;

  buildInputs = [
    pkgs.meson
    [ pkgs.hello ]
  ];
}

With [ pkgs.hello ] in the inputs list, mesonConfigurePhase does not run. Removing it makes the phase run as intended. This is extremely footgunny and we need to fix that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: stdenvStandard environment

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions