musl build environment for rust?

This page summarizes the projects mentioned and recommended in the original post on /r/NixOS

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • rust

    Empowering everyone to build reliable and efficient software.

  • This issue might also have some relevant information: https://github.com/rust-lang/rust/issues/81987

  • nixpkgs-mozilla

    Mozilla overlay for Nixpkgs.

  • let base-nixpkgs = import {}; mozillaOverlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); nixpkgs = import { overlays = [ mozillaOverlay ]; }; rust = (nixpkgs.rustChannelOf { channel = "nightly"; }).rust.override { targets = [ "x86_64-unknown-linux-musl" ]; }; rustPlatform = nixpkgs.makeRustPlatform { cargo = rust; rustc = rust; }; in nixpkgs.stdenv.mkDerivation { name = "rust-env"; nativeBuildInputs = [ rustPlatform.rust.cargo rustPlatform.rust.rustc nixpkgs.file ]; }

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • nixpkgs

    Nix Packages collection & NixOS

  • nix let nixpkgs-unstable = builtins.fetchTarball https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz; mozillaOverlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); nixpkgs = import nixpkgs-unstable { overlays = [ mozillaOverlay ]; }; rust = (nixpkgs.rustChannelOf { channel = "nightly"; }).rust.override { targets = [ "x86_64-unknown-linux-musl" ]; }; rustPlatform = nixpkgs.makeRustPlatform { cargo = rust; rustc = rust; }; in nixpkgs.stdenv.mkDerivation { name = "rust-env"; nativeBuildInputs = [ rustPlatform.rust.cargo rustPlatform.rust.rustc nixpkgs.file ]; }

  • fenix

    Rust toolchains and rust-analyzer nightly for Nix [maintainer=@figsoda] (by figsoda)

  • There is an example for cross compiling with naersk, and it should be pretty easy to change to use makeRustPlatform.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • NixOS: Declarative Builds and Deployments

    13 projects | news.ycombinator.com | 14 Jan 2024
  • Transitioning to Rust as a company

    8 projects | /r/rust | 2 Jun 2023
  • NixOS + SteamVR + OpenXR + Godot

    2 projects | /r/NixOS | 2 May 2023
  • Lanzaboote vs. bootspec-secureboot

    4 projects | /r/NixOS | 11 Mar 2023
  • Has anyone packaged Rust programs as nix packages?

    3 projects | /r/rust | 8 Mar 2023