Code Monkey home page Code Monkey logo

Comments (6)

icosahedron avatar icosahedron commented on May 8, 2024 1

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.

icosahedron avatar icosahedron commented on May 8, 2024

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.

loreto avatar loreto commented on May 8, 2024

@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:

  1. 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.
  2. 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.

icosahedron avatar icosahedron commented on May 8, 2024

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.

icosahedron avatar icosahedron commented on May 8, 2024

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.

Lagoja avatar Lagoja commented on May 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.