about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-08-20 16:20:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-08-20 16:20:00 -0500
commit690e363780b2d3b209fb9865119aed3d8983dc67 (patch)
tree8cbc394e6d81e28b8c180d5997118584013db6a7 /pkgs/development/compilers
parent249b4ad942811160ea22aaa772283e991cc9329f (diff)
downloadnixlib-690e363780b2d3b209fb9865119aed3d8983dc67.tar
nixlib-690e363780b2d3b209fb9865119aed3d8983dc67.tar.gz
nixlib-690e363780b2d3b209fb9865119aed3d8983dc67.tar.bz2
nixlib-690e363780b2d3b209fb9865119aed3d8983dc67.tar.lz
nixlib-690e363780b2d3b209fb9865119aed3d8983dc67.tar.xz
nixlib-690e363780b2d3b209fb9865119aed3d8983dc67.tar.zst
nixlib-690e363780b2d3b209fb9865119aed3d8983dc67.zip
mosml: fix build error on darwin
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/mosml/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/compilers/mosml/default.nix b/pkgs/development/compilers/mosml/default.nix
index 89726f20c6b8..b22072651a46 100644
--- a/pkgs/development/compilers/mosml/default.nix
+++ b/pkgs/development/compilers/mosml/default.nix
@@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ gmp perl ];
 
-  makeFlags = "PREFIX=$(out)";
+  makeFlags = [ "PREFIX=$(out)" ] ++ stdenv.lib.optionals stdenv.isDarwin [ "CC=cc" ];
 
   src = fetchurl {
     url = "https://github.com/kfl/mosml/archive/ver-${version}.tar.gz";
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
     '';
     homepage = https://mosml.org/;
     license = licenses.gpl2;
-    platforms = platforms.linux;
+    platforms = platforms.unix;
     maintainers = with maintainers; [ vaibhavsagar ];
   };
 }