aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix-overlays/dmd/binary.nix
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2024-03-08 20:53:55 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2024-03-09 23:30:12 -0500
commit3abf80402ad1e7e8d312f2bdf5435ed4f079c0d1 (patch)
tree72f8a01e53290a56c85405736e290ac7259129bf /nix-overlays/dmd/binary.nix
parentldc-1.37.0 & dub-1.36.0 (diff)
dmd & ldc upkeep (dmd at 2.106.1)
- dmd current nixpkgs and overlay identical
Diffstat (limited to 'nix-overlays/dmd/binary.nix')
-rw-r--r--nix-overlays/dmd/binary.nix7
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;