Skip to content

nix 2.30 - "is not allowed to refer to the following paths" #14157

@h0nIg

Description

@h0nIg

Describe the bug

build failure on certain derivation which use advanced nix features: NixOS/nixpkgs#448752

nix 2.29.2 works, 2.30.3 not (including 2.31.*)

$ nix build ".#postgresql_17" --verbose
this derivation will be built:
  /nix/store/x8l5i34yws4jm9vi6nj1791xr3rjqr3g-postgresql-17.6.drv
building '/nix/store/x8l5i34yws4jm9vi6nj1791xr3rjqr3g-postgresql-17.6.drv'...
error: output '/nix/store/iaddlmk85rsykjpx54glm9vnzh66ixbw-postgresql-17.6-jit' is not allowed to refer to the following paths:
         /nix/store/02k5k9n7j04ckr0m8533zwkfvwp64gi3-clang-wrapper-20.1.8
         /nix/store/6fqij3sy1mlsnq1n679bzbl5bkqs7yvk-zlib-1.3.1-dev
         /nix/store/87m0bfli6f63fx1shw4sw59cjcqpvzb0-zstd-1.5.7-dev
         /nix/store/cn6yrlr63spymdnxf6m8gd9zkkxpcpas-krb5-1.22.1-dev
         /nix/store/cz9k6nhxjppa1kmyf5npd0g8l89xzilw-openssl-3.5.2-dev
         /nix/store/i94kq19cgv5c2phfj6gzkkl84pgs9pas-util-linux-minimal-2.41.1-dev
         /nix/store/pk1kxabxmwnr5d2gm778haqrsivkpp1j-systemd-minimal-libs-257.9-dev
         /nix/store/rrpmwmachqkv4cn5i0azqw8dqxyx9wrj-libxml2-2.14.6-dev
         /nix/store/sy2vbl9113xlz1w47jk5gx7rg8rk089p-llvm-20.1.8
         /nix/store/ys2c150xm8rfnwi15pkl6a3ic49xlb6g-lz4-1.10.0-dev
         /nix/store/zc7w3ii28j4kagmlznjdajf0nzd0z60a-icu4c-76.1-dev

Steps To Reproduce

recent build on nixpkgs staging:

git checkout b7516ddb2fa10be3e3e711634c76748ba1646e21
nix build ".#postgresql_17" --verbose

Expected behavior

Metadata

Additional context

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