Open Gau-thier opened 3 months ago
Finally found the solution, adding darwin.apple_sdk.frameworks.SystemConfiguration
in the buildInputs
because Apple machines need to brings frameworks into scope.
Should this be added in the template but in a commented line? Hence, one would be able to uncomment the line and solve this problem which will appear on all Apple machines running real world Rust.
This can be added with a conditional. Something like this: https://github.com/NixOS/nixpkgs/blob/24d7835b9ae72ca8c553fc5c331342c1894a15b4/pkgs/by-name/nh/nh/package.nix#L34
Hi, thanks for these useful templates!
Unfortunately, the rust one can face the
error: linking with
ccfailed: exit status: 1
error on Mac M1...It worked perfectly, until I run
cargo add sqlx
then try tocargo build
:I know this error is linked to
clang
but I don't find any way to solve it on my Mac M1... That would be great to have inside the template, the workaround to avoid any other Mac user to face this error.I don't have any modifications on the
flake.nix
or theshell.nix
generated and created by the template.Cheers and thanks again!