Repository navigation
python3Packages.avahi: fix build - #596538
Merged
Merged
Conversation
We recently enabled `strictDeps` for `avahi`: <NixOS@a73df21840ab>, which causes the `python3Packages.avahi` build to fail: ```console $ nix-build -A python3Packages.avahi ... checking for libdaemon >= 0.14 ... yes checking for a Python interpreter with version >= 2.6... none configure: error: no suitable Python interpreter found error: Cannot build '/nix/store/nqvw4dik1fg118qpzji5wmflam156cs9-avahi-0.8.drv'. ``` I guess we need python at build time, and with `strictDeps = true`, adding it to `propagatedBuildInputs` isn't enough to make it available at build time. So, I've added it to `nativeBuildInputs` as well. Full disclosure: I haven't actually tested this for correctness other than confirming that the build now succeeds. I also haven't checked if cross compilation works with this package. Justification: it is quite late, and I figure this is basically just a targeted revert of the `strictDeps = true;` we recently added.
4 of 13 tasks
Contributor
Author
|
Pandapip1
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We recently enabled
strictDepsforavahi:a73df21840ab, which causes the
python3Packages.avahibuild to fail:I guess we need python at build time, and with
strictDeps = true, adding it topropagatedBuildInputsisn't enough to make it available at build time. So, I've added it tonativeBuildInputsas well.Full disclosure: I haven't actually tested this for correctness other than confirming that the build now succeeds. I also haven't checked if cross compilation works with this package. Justification: it is quite late, and I figure this is basically just a targeted revert of the
strictDeps = true;we recently added.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.