Giter VIP home page Giter VIP logo

Comments (15)

Havvy avatar Havvy commented on June 15, 2024 2

I think merging in rust-nightly-nix into nixpkgs-mozilla is the direction we should be going for.

from nixpkgs-mozilla.

nbp avatar nbp commented on June 15, 2024 1

@zimbatm , I was discussing that with @Havvy on #nixos irc.mozilla.org, and the manifest file explicitly list all rust-std targets as being inside the rust package, such as wasm32-unknown-emscripten and x86_64-unknown-linux-musl.

So I have not tested it, but I am confident it should work out of the box.

from nixpkgs-mozilla.

solson avatar solson commented on June 15, 2024 1

This issue is now out of date, see solson/rust-nightly-nix#27 for a summary of the situation.

from nixpkgs-mozilla.

garbas avatar garbas commented on June 15, 2024

💯 from my side, @solson would you be able to provide a PR then @nbp as current author of rust overlay (we don't want to break nobodies workflow).

Of-course you'll get a push permission with merged PR :)

And this reminds me: I need to setup binary cache for this repo.

from nixpkgs-mozilla.

Ericson2314 avatar Ericson2314 commented on June 15, 2024

Well, it's not yet clear to me at least what parts form each we want :). But yes PR in the end would be good.

from nixpkgs-mozilla.

garbas avatar garbas commented on June 15, 2024

should we organize a quick google hangout to discuss how to move forward with this? ping to @solson @Ericson2314 @Havvy @nbp

from nixpkgs-mozilla.

Havvy avatar Havvy commented on June 15, 2024

Most of us on the nix-nightly-rust side hang out in the Rust IRC channels (and #nixos on Freenode).

from nixpkgs-mozilla.

Ericson2314 avatar Ericson2314 commented on June 15, 2024

I could do either, but I will be on vacation for about a week starting Thursday.

from nixpkgs-mozilla.

nbp avatar nbp commented on June 15, 2024

@Havvy wrote:

I think merging in rust-nightly-nix into nixpkgs-mozilla is the direction we should be going for.

I carefully did not look too much into @solson work, because of the licensing issue.

Instead, I reversed engineered rustup and annotated the code of the the rust-overlay to take rustup as the only source of truth.

I also think this repository should be using MIT instead of the MPL, such that we can at least contribute back to Nixpkgs.

@Havvy wrote:

Most of us on the nix-nightly-rust side hang out in the Rust IRC channels (and #nixos on Freenode).

You can find me on both freenode (pierron) and irc.mozilla.org (nbp).

from nixpkgs-mozilla.

nbp avatar nbp commented on June 15, 2024

Looking at the differences:

  • The rust overlay uses the manifest v2 like rustup, instead of the manifest v1 (deprecated?).
  • Binaries are patched by finding them, instead of listing them.
  • Uses the install script provided in the tarball instead of using rsync.
  • Provides "stable", "beta", and "nightly" like rustup, instead of only "nightly" builds.
  • The rust overlay has no equivalent to rustcWithSysroots function.
  • The rust overlay does not use multiple outputs.

from nixpkgs-mozilla.

zimbatm avatar zimbatm commented on June 15, 2024

What's the story around cross-compilation, does either support it?

from nixpkgs-mozilla.

Havvy avatar Havvy commented on June 15, 2024

With rust-nightly-nix, you need to use rustc-with-sysroots and list which cross-compilation targets you want to support. I have actually done this, so I know it works.

from nixpkgs-mozilla.

nbp avatar nbp commented on June 15, 2024

From what I can tell, the only missing part now seems to be the documentation of the Rust overlay.
Especially how to use it with the existing Nixpkgs infrastructure, and how to use it for cross-compiling.

from nixpkgs-mozilla.

Havvy avatar Havvy commented on June 15, 2024

That matches my understanding of the situation too.

from nixpkgs-mozilla.

Ericson2314 avatar Ericson2314 commented on June 15, 2024

And for the record, cross compilation was also fixed.

from nixpkgs-mozilla.

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.