From 38a03e164e87465e8ec5781960fab5d8eacb7bde Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Tue, 9 May 2023 00:31:06 -0700 Subject: [PATCH] dmd: build using gcc11Stdenv The DMD test suite has been failing since we updated to gcc12, as reported by @trofi: https://github.com/NixOS/nixpkgs/pull/206907#issuecomment-1527034123 Let's use gcc11Stdenv for now. --- pkgs/top-level/all-packages.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 58ea2ba96c7b6..851101dee391e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6838,9 +6838,12 @@ with pkgs; dleyna-server = callPackage ../development/libraries/dleyna-server { }; - dmd = callPackage ../development/compilers/dmd { + dmd = callPackage ../development/compilers/dmd ({ inherit (darwin.apple_sdk.frameworks) Foundation; - }; + } // lib.optionalAttrs stdenv.isLinux { + # https://github.com/NixOS/nixpkgs/pull/206907#issuecomment-1527034123 + stdenv = gcc11Stdenv; + }); dmg2img = callPackage ../tools/misc/dmg2img { };