Skip to content

python3Packages.avahi: fix build - #596538

Merged
Pandapip1 merged 1 commit into
NixOS:masterfrom
jfly:unbreak-python3Packages-avahi
Dec 2, 2026
Merged

Pandapip1 merged 1 commit into
NixOS:masterfrom
jfly:unbreak-python3Packages-avahi

Conversation

@jfly

@jfly jfly commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

We recently enabled strictDeps for avahi:
a73df21840ab, which causes the python3Packages.avahi build to fail:

$ 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.

Things done

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.
@jfly
jfly requested a review from Pandapip1 December 2, 2026 10:16
@jfly jfly mentioned this pull request Dec 2, 2026
4 of 13 tasks
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Dec 2, 2026
@jfly

jfly commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 596538
Commit: c0ab872f63771bdeff65308a0a93bfa0456b3e2e


x86_64-linux

✅ 2 packages built:
  • python314Packages.avahi
  • python313Packages.avahi

@Pandapip1
Pandapip1 added this pull request to the merge queue Dec 2, 2026
Merged via the queue into NixOS:master with commit 079182c Dec 2, 2026
33 checks passed
@jfly
jfly deleted the unbreak-python3Packages-avahi branch December 2, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants