Open alexandru0-dev opened 2 months ago
@alexandru0-dev I don't know much about NixOS but isn't it linux based? Why should it build on macOS? driverkit is built with only macOS in mind...
@psych3r Nixos is a linux distro based on nix Nix is a language/package manager
My bad about the link, probably this is a better explanation of what nix is https://nixos.org/guides/how-nix-works/
Nix is also capable of building darwin (macOS) packages
@psych3r any updates on this issue?
As the title says builds on nix fail due to
build.rs
using conditional includes. When building with Nix,os_info::get().version()
returnsUnknown
which is cannot be deserialized toSematic
resulting in missing includes and build failues. Original commentPossible solution:
Using feature flags would be ideal and using the current method (dynamic builds) as a fallback.
Also sidenote: Shouldn't those lines contain
c_src
only 1 time? https://github.com/psych3r/driverkit/blob/1b552cc9a0d60003605f2a69f2c2c3b46cacfc71/build.rs#L31-L32