Comments (3)
Those are great questions. I think Devbox should do better here, and in particular since this is a bit of an FAQ for Rust with Macs, we should make it Just Work ™️ . Lets leave this task open for a bit. I'll look into it more this week.
There are some considerations in my mind:
- is it a good idea to use the nix packaged Security Framework instead of relying on the library in your MacOS? I'd like to look into how frequently and quickly that package is updated. I am wondering if there is a reproducibility versus security tradeoff here.
- can we modify Devbox's Rust plugin to guide users? Hopefully, this can have users avoid the experience you had.
To your questions:
- Not super familiar with the internals of
flox
(they are a GPL project, so I'll have to tread carefully there), but it sounds like they are relying on the native MacOS environment. This can hurt reproducibility since a colleague of yours on Linux may get a different set of tools, but then again, at least it worked for you so that's better than your Devbox experience. - Yes IMO, see my second consideration above.
- Not yet :)
from devbox.
@ineiti I'd suggest running devbox add "darwin.apple_sdk.frameworks.Security" --platform=x86_64-darwin,aarch64-darwin
.
With that, I am able to run cargo build
on my x86_64-darwin
machine.
Let us know if that does, or does not, work for you?
from devbox.
@savil Thanks a lot, that solves the problem and it compiles fine now! I did not know about this package, and I did spend 30 minutes on Google with the error message before opening this issue. How could I have discovered this?
Some questions:
- Why does
flox
manage to compile this by default? Is it because it doesn't includeclang
? I checkedwhich ar
, andflox
gives the/usr/bin/ar
, whiledevbox
gives it's own ar in a clang subdirectory. - Should
devbox
have some of these packages as default? - Do you want me to close the issue? Or is it worth investigating this further?
from devbox.
Related Issues (20)
- Unable to run Nix Flake on MacBook Pro M1 HOT 1
- error: path '/home' is a symlink for PHP package
- Support rootless install HOT 2
- [Feature]: Support devbox.yaml
- Example to change database port
- [Minor] Generate readme should not expand env variables paths
- Proposed change to plugin schema HOT 1
- Support multiple .env files with direnv
- VSCode extension: Devbox: Reopen in Devbox Shell Environment fails to re-open VSCode HOT 1
- Add an R example HOT 2
- Just learning devbox, docs say installer will install nix, it doesn't. HOT 1
- Support pull from git repository URLs not ending in `.git`
- Running script can modify lock file when plugin version changes
- Base Dockerfile add ps(procps) package HOT 2
- `devbox global push` – No such file or directory
- dotnetCorePackages.sdk_8_0 is missing
- Lock files for Devbox plugins
- The latest release of terraform is missing HOT 1
- Incorrect working directory using "devbox run" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devbox.