Skip to content

cannot coerce null to a string - when checking nix flake in shell.nix #1985

Open
@mrcjkb

Description

@mrcjkb

Describe the bug

A clear and concise description of what the bug is, including:

  • Build system: x86_64-linux
  • Haskell.nix rev: 8f6a720

When running nix flake check, I have encountered the error cannot coerce null to a string while checking a haskell.nix shell.
The cause is in shell-for.nix:61:

comp: selectedComponentsBitmap."${((haskellLib.dependToLib comp).name or null)}" or false;

I guess the fix would be

comp: selectedComponentsBitmap."${((haskellLib.dependToLib comp).name or "")}" or false;

(not sure)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpreservedKeep stale bot away

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions