Git Product home page Git Product logo

Comments (3)

crawford avatar crawford commented on May 31, 2024 1

I've successfully used the above solution for a while. It's worth noting that Xargo is no longer required, so now I use the following (installing rust-std for thumbv7m-none-eabi instead of rust-src):

let
  moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
  nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
in
  with nixpkgs;
  stdenv.mkDerivation {
    name = "project";
    buildInputs = [
      (rustChannels.nightly.rust.override {
        targets = [ "thumbv7m-none-eabi" ];
        extensions = [ "rust-std" "rustfmt-preview" ];
      })
      gcc-arm-embedded
    ];
  }

This can probably be closed.

from nixpkgs-mozilla.

jameysharp avatar jameysharp commented on May 31, 2024

I've been using this expression:

(rustChannels.nightly.rust.override { extensions = [ "rust-src" ]; })

More broadly, here's the shell.nix I'm using to also get a GCC toolchain for ARM microcontrollers:

with import <nixos> {};
runCommand "dummy" {
  buildInputs = [
    (rustChannels.nightly.rust.override { extensions = [ "rust-src" ]; })
    gcc-arm-embedded
  ];
} ""

from nixpkgs-mozilla.

nbp avatar nbp commented on May 31, 2024

@joepie91 Can you confirm if the solution proposed by @jameysharp works for you?

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.