Skip to content

Nix flake show output broken #198

@simonzkl

Description

@simonzkl

Describe the bug

There's a bunch of regressions in nix flake show since upgrading from dnix 3.9.1 to 3.11.1

├───apps
│   ├───aarch64-darwin
│   │   └───jq: app 'app'

^ app is no longer picking up meta.description

├───checks
│   ├───aarch64-darwin
│   │   ├───installerScriptForGHA: derivation 'derivation 'installer-script''

^ derivation is printed twice

│   ├───aarch64-linux
│   │   ├───default: omitted 'omitted (use '--all-systems' to show)'

^ omitted is printed twice

Steps To Reproduce

  1. Clone https://github.com/DeterminateSystems/nix-src
  2. Run nix flake show --no-eval-cache

Optionally add an app to the flake to see the broken meta.description behaviour:

apps = forAllSystems (
  system: {
    jq = {
      type = "app";
      program = lib.getExe nixpkgsFor.${system}.native.jq;
      meta.description = "foo";
    };
  }
);

Expected behavior

Should not have these regressions.

Metadata

Determinate Nixd daemon version: 3.11.1
Determinate Nixd client version: 3.11.1

You are running the latest version of Determinate Nix.

The following features are enabled:

 * lazy-trees

Visit https://dtr.mn/features for more information.
nix (Determinate Nix 3.11.1) 2.31.1

Additional context

Run nix run nixpkgs#nixVersions.nix_2_31 -- flake show --no-eval-cache and none of these issues appear. It also works fine in older versions of dnix, but I can't say for sure which version since 3.9.1 broke this.

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions