fix(build): Use nix from the buildir instead of the installed one#7747
fix(build): Use nix from the buildir instead of the installed one#7747Et7f3 wants to merge 1 commit intoNixOS:masterfrom
Conversation
|
|
||
| # Technically it will be defined by mk/programs.mk | ||
| # but we can't use it as dependency of target unless we enable .SECONDEXPANSION: | ||
| nix_PATH = $(buildprefix)src/nix/nix |
There was a problem hiding this comment.
It can be made more generic with
| nix_PATH = $(buildprefix)src/nix/nix | |
| nix_PATH = $(buildprefix)$(nix_DIR)/nix |
$(nix_NAME) isn't available without .SECONDEXPANSION:
|
Our build system by intent uses |
|
So we will need in configure to give a prefix writable by user ? I think it is more common and less disturbing to have a CMMI (without needing to pass --prefix) and |
|
Triaged in the Nix team meeting 2023-02-17:
|
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-02-17-nix-team-meeting-minutes-33/25624/1 |
|
Duplicate of #5145. I changed the |
Motivation
Context
fix #7124
I think it wasn't caught because
nix developconfigurePhase set a prefix to local directory that is writeable.Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.shsrc/*/teststests/nixos/*