Merge pull request #280470 from trofi/dmd-eval

dmd: improve eval failure on `pkgsLLVM` package set
This commit is contained in:
Mario Rodas 2024-01-14 08:44:36 -05:00 committed by GitHub
commit 276d6dde1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,12 @@ let
inherit (stdenv) hostPlatform;
OS = if hostPlatform.isDarwin then "osx" else hostPlatform.parsed.kernel.name;
MODEL = toString hostPlatform.parsed.cpu.bits;
in stdenv.mkDerivation {
in
# On linux pargets like `pkgsLLVM.dmd` `cc` does not expose `libgcc`
# and can't build `dmd`.
assert hostPlatform.isLinux -> (stdenv.cc.cc ? libgcc);
stdenv.mkDerivation {
pname = "dmd-bootstrap";
inherit version;