Comments (6)
Nice. Thanks for researching that. I guess I misunderstood how nix works. I thought it would pick up the existing installed framework, so I was trying to figure out how my path was wrong.
from devbox.
Rust doesn't seem to work on macOS in a devbox shell. A simple default app created with cargo
doesn't link properly. Not sure what the issue is. Probably on the Rust side?
from devbox.
@icosahedron We do support different shells with different environments. I suspect you ran into an issue by accidentally calling devbox shell
inside devbox shell
. It's happened to us a few times internally.
We just released a new version of devbox
that prevents you from making that mistake (shell-inception is what we call it)
Re: rust compilation, I can't tell if that's due to the nested shells ... or something else. Would you mind making sure you're not in a nested shell, and then trying to compile again? If it doesn't work:
- Would you be able to send me the output of
env
? (do scrub any sensitive env variables first) Mainly looking to see if there's something else interfering. - Is there a sample rust project you could point me that is representative of what you're trying to do? That way I could try building it myself to see if I can get it to work.
from devbox.
I too have been accidentally a few shells deep ¯_(ツ)_/¯, but the rust issue isn't related to that. (😆 at the name of shell inception). I've pushed a repo with the little project that I'm working on.
https://codeberg.org/icosahedron/rust-roguelike/src/branch/devbox
It fails linking with the errors
cargo-build-error.txt
And here are the requested environment variables.
devbox-env.txt
from devbox.
I should state that I used devbox add rustup
and then used that to install the Rust toolchain from inside devbox shell
. It seems to install correctly, in that cargo
and rustc
are in nix directories?
from devbox.
Hey @icosahedron, I did some digging and testing on my end, and I think the error you posted above is because AppKit framework is not available in your devbox shell. I was able to add it to my devbox by running:
devbox add darwin.apple_sdk.frameworks.AppKit
Can you try that in your project and see if that helps?
from devbox.
Related Issues (20)
- Installed programs are not available
- Conflicting Python recommendations HOT 1
- Stop setting LD_LIBRARY_PATH and LIBRARY_PATH
- Dozer CLI for building, deploying and maintaining real-time data products
- best way to get store path for resource HOT 5
- Support passing `SIGINT` to scripts that are running via `devbox run` HOT 4
- devbox install reports Error: "nix print-dev-env ..." HOT 3
- Hide banner message from python plugin HOT 4
- devbox shell fails when git+ssh flakes with flake references are used HOT 3
- support for more complex package definitions HOT 1
- [Request] add sql-migrate HOT 2
- Plugins from the same repo share the same state directories HOT 2
- .devbox/bin/devbox symlink appears to be wrong? HOT 4
- Nix GC command breaks nix completely HOT 3
- Curl flake with ^out,dev not adding dynamic libraries HOT 3
- Preinstall common libraries for popular environments
- Recreate virtual environments when changing packages
- Patch all packages that are using GCC libraries older than the stdenv libraries
- Fix glibc-patch/flake.nix build HOT 1
- GLIBC patching and linker improvements 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.