diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2024-03-09 15:11:27 -0500 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2024-03-09 23:31:26 -0500 |
commit | c7079d43ae99219ed5679df40f83b9266caab716 (patch) | |
tree | ecdb13ab85ff6e066ed213c9365e4263e1521fbd /nix-overlays/dmd/binary.nix | |
parent | ldc-1.37.0 & dub-1.36.0 (diff) |
dmd & ldc upkeep (dmd at 2.106.1)
Diffstat (limited to 'nix-overlays/dmd/binary.nix')
-rw-r--r-- | nix-overlays/dmd/binary.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nix-overlays/dmd/binary.nix b/nix-overlays/dmd/binary.nix index 6a99d42..3a5d6b7 100644 --- a/nix-overlays/dmd/binary.nix +++ b/nix-overlays/dmd/binary.nix @@ -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; |