-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nix build issue #7809
Comments
Just ran into this error and this was the ONLY Google search result. My case is not building a flake, but building the |
It was changed to a separate variable in #7896. Is that an improvement? |
Hi @NaN-git
I opened emil-e/rapidcheck#302 to help with this. There could be both Crickets on that issue; maybe the thing to do is just open a PR (and apply a patch in Nixpkgs ;)).
See the separate variable as @roberth pointed out.
Perhaps we can also make
Note that
I cannot unilaterally say "idea approved", but I personally will certainly review what you do if you open a PR. Please do! |
If your environment is different, ie not our devshell or the nixpkgs build, that's all the more reason to run the tests. With this in mind, perhaps the autodetection could still produce a For our hacking setup such automatic behavior isn't great, so we could explicitly enable tests through our development shell. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-03-17-nix-team-meeting-minutes-41/26614/1 |
Sorry for the late reply. With the updated flake, documentation and configure.ac the build succeeds. |
Since it took me some time to realize the workaround, I want to share it explicitly. Run:
|
Allows to run `./configure` in `nix-shell` environment without additional workarounds. See NixOS#7809 for more context. Related to NixOS#7809 (but doesn't fix it)
Ran into this issue while trying to run
Posted #8834 to add this environment variable to all shells. |
Describe the bug
Since the inclusion of rapidcheck the
configure
andmake
flow does not work anymore in a build shell.Steps To Reproduce
nix develop .#nix
./bootstrap.sh
and./configure
make
aborts withExpected behavior
The build should work without applying additional flags to
./configure
. Otherwise hacking on nix becomes very annoying.Additional context
The issue is caused by non-standard include directories of rapidcheck and the workaround in the flake is
Either the rapidcheck package should be modified so that the header is in a standard path or configure.ac should be modified to support rapidcheck specific arguments, which can be set by the flake instead of modifying
configureFlags
. Also a proper check for the library is missing in configure.ac.I can write a patch for configure.ac, if I get the OK for such a change.
The text was updated successfully, but these errors were encountered: