From 6f9359a504ae930346156b2428b47d48d950aea3 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 29 Jun 2022 09:46:47 +0000 Subject: [PATCH] rustc: mark broken for dynamic Musl target --- pkgs/development/compilers/rust/rustc.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index d167cf91c361..a996f987bed6 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -188,5 +188,8 @@ in stdenv.mkDerivation rec { maintainers = with maintainers; [ madjar cstrahan globin havvy ]; license = [ licenses.mit licenses.asl20 ]; platforms = platforms.linux ++ platforms.darwin; + # rustc can't generate binaries for dynamically linked Musl. + # https://github.com/NixOS/nixpkgs/issues/179242 + broken = stdenv.targetPlatform.isMusl && !stdenv.targetPlatform.isStatic; }; }