Describe the bug
If I try to make my system perlless, my system rebuild fails.
Steps To Reproduce
Steps to reproduce the behavior:
- Add the following module to your system configuration:
{ modulesPath, ... }:
{
imports = [ "${modulesPath}/profiles/perlless.nix" ];
}
nixos-rebuild
Expected behavior
The command succeeds.
Screenshots
Commands:
$ doas nixos-rebuild boot
building the system configuration...
error: builder for '/nix/store/<hash>-etc-lowerdir.drv' failed with exit code 1;
last 1 log lines:
> cp: cannot stat '/etc/zoneinfo/<region>/<city>': No such file or directory
For full logs, run 'nix log /nix/store/<hash>-etc-lowerdir.drv'.
error: 1 dependencies of derivation '/nix/store/<hash>-nixos-system-<hostname>-<timestamp>.<hash>.drv' failed to build
$ nix log /nix/store/<hash>-etc-lowerdir.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/<hash>-etc-lowerdir.drv^*'
cp: cannot stat '/etc/zoneinfo/<region>/<city>': No such file or directory
$ nix log '/nix/store/<hash>-etc-lowerdir.drv^*'
cp: cannot stat '/etc/zoneinfo/<region>/<city>': No such file or directory
$ stat /etc/zoneinfo/<region>/<city>
File: /etc/zoneinfo/<region>/<city>
Size: xxxx Blocks: x IO Block: xxxx regular file
Device: x,xx Inode: xxxxxxx Links: 1
Access: (0444/-r--r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: <timestamp>
Modify: <timestamp>
Change: <timestamp>
Birth: <timestamp>
Additional context
nixos-rebuild dry-build succeeds.
I use flakes.
Notify maintainers
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.9.4, NixOS, 24.05 (Uakari), 24.05.20240612.cc54fb4`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Lix, like Nix) 2.90.0-beta.1`
- channels(root): `"nixos-23.11"`
- nixpkgs: `/nix/store/aa0zsahvyqnvzkicsh29jirm9hwv95pg-source`
Add a 👍 reaction to issues you find important.
Describe the bug
If I try to make my system perlless, my system rebuild fails.
Steps To Reproduce
Steps to reproduce the behavior:
nixos-rebuildExpected behavior
The command succeeds.
Screenshots
Commands:
Additional context
nixos-rebuild dry-buildsucceeds.I use flakes.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"and paste the result.Add a 👍 reaction to issues you find important.