Skip to content

buildComposerProject makes derivations with infinite recursion, hangs interpreter #277285

@trofi

Description

@trofi

Describe the bug

buildComposerProject seems to be incompatible with pkgsStatic packages. Any attempt to evaluate such packages seems to hang.

Steps To Reproduce

I tried a few:

  • pkgsStatic.composer-require-checker
  • pkgsStatic.librenms
$ nix build github:NixOS/nixpkgs#pkgsStatic.composer-require-checker
evaluating derivation 'github:NixOS/nixpkgs#pkgsStatic.composer-require-checker'error: stack overflow (possible infinite recursion)

$ nix build github:NixOS/nixpkgs#pkgsStatic.librenms
evaluating derivation 'github:NixOS/nixpkgs#pkgsStatic.librenms'error: stack overflow (possible infinite recursion)

Expected behavior

Ideally a package should evaluate into a derivation or fail the evaluation quicker.

Notify maintainers

@drupol

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.6, NixOS, 24.05 (Uakari), 24.05.20231228.420b97b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.19.2`
 - channels(root): `""`
 - channels(slyfox): `""`
 - nixpkgs: `/run/current-system/sw/share/nixos-flakes/inputs/nixpkgs`

Add a 👍 reaction to issues you find important.

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: phpPHP is a general-purpose scripting language geared towards web development.
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions