Skip to content

Conversation

@infinisil
Copy link
Member

Supposedly #368226 fixed it, but either nobody actually tested it or older Nix versions were fine, but all currently available Nix versions, including 2.24 and 2.32 complain about it:

building '/nix/store/9n4hwzk8s74n6cq8dlxa4qas9jchsbgc-inputDerivation.drv'...
error: output '/nix/store/l3gmc01pwa42rzq9riv8wm3skzkm144r-inputDerivation' is not allowed to refer to the following paths:
         /nix/store/k5z8rkvj1fn1nrf05l5a86aflc5s1p6m-stdenv-linux
         /nix/store/l3gmc01pwa42rzq9riv8wm3skzkm144r-inputDerivation
         /nix/store/l622p70vy8k5sh7y5wizi5f2mic6ynpg-source-stdenv.sh
         /nix/store/qsydfxm1vq6q9jac2kq3r8kn0xdmsldf-bash-5.3p3
         /nix/store/shkw4qm9qcw5sc5n1k5jznc83ny02r39-default-builder.sh

This commit fixes it (again?) and adds a regression test

Ping @ShamrockLee

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

Supposedly NixOS#368226 fixed it, but
either nobody actually tested it or older Nix versions were fine, but
all currently available Nix versions, including 2.24 and 2.32 complain
about it:

    building '/nix/store/9n4hwzk8s74n6cq8dlxa4qas9jchsbgc-inputDerivation.drv'...
    error: output '/nix/store/l3gmc01pwa42rzq9riv8wm3skzkm144r-inputDerivation' is not allowed to refer to the following paths:
             /nix/store/k5z8rkvj1fn1nrf05l5a86aflc5s1p6m-stdenv-linux
             /nix/store/l3gmc01pwa42rzq9riv8wm3skzkm144r-inputDerivation
             /nix/store/l622p70vy8k5sh7y5wizi5f2mic6ynpg-source-stdenv.sh
             /nix/store/qsydfxm1vq6q9jac2kq3r8kn0xdmsldf-bash-5.3p3
             /nix/store/shkw4qm9qcw5sc5n1k5jznc83ny02r39-default-builder.sh

This commit fixes it (again?) and adds a regression test
Otherwise it can be very confusing, because you have one "hello"
derivation which actually builds hello, while the other doesn't
@wolfgangwalther
Copy link
Contributor

CI fails here.

@infinisil
Copy link
Member Author

Done by #469652 now :D

@infinisil infinisil closed this Dec 13, 2025
@infinisil infinisil deleted the inputDerivation-structured branch December 13, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants