Skip to content

Building fails under nix-shell #14626

@bjornfor

Description

@bjornfor

Describe the bug

$ nix-shell
[nix-shell]$ meson setup build .
[...]
perl| Message: Perl install site: /nix/store/nxw1xxfxkd6bm570nb6gv0g6pghp7i4c-perl-5.40.0/lib/perl5/site_perl/5.40.0/x86_64-linux-thread-multi
perl| Message: Assumed Nix-Perl install dir: /usr/local/lib/perl5/site_perl/5.40.0/x86_64-linux-thread-multi

src/perl/meson.build:132:17: ERROR: Command `/nix/store/nxw1xxfxkd6bm570nb6gv0g6pghp7i4c-perl-5.40.0/bin/perl -e 'use DBI; use DBD::SQLite;' -I/usr -I/usr` failed with status 2.

Steps To Reproduce

  1. Clone this repository (latest master branch is 327e8ba as of now).
  2. Run nix-shell
  3. Run meson setup build . to configure and build the project
  4. Observe error: src/perl/meson.build:132:17: ERROR: Command /nix/store/nxw1xxfxkd6bm570nb6gv0g6pghp7i4c-perl-5.40.0/bin/perl -e 'use DBI; use DBD::SQLite;' -I/usr -I/usr failed with status 2.

Expected behavior

Building should not fail.

Metadata

NixOS 25.05, Nix 2.28.5, x86_64-linux.

Additional context

#12756 has the same error, but (1) is about aarch64-darwin and (2) was closed several months ago.

Just before failing, meson prints this suspicious path:

Message: Assumed Nix-Perl install dir: /usr/local/lib/perl5/site_perl/5.40.0/x86_64-linux-thread-multi

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions