summary refs log tree commit diff
path: root/pkgs/development/compilers/polyml/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/polyml/default.nix')
-rw-r--r--pkgs/development/compilers/polyml/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/compilers/polyml/default.nix b/pkgs/development/compilers/polyml/default.nix
index 76bb811dd66..276065ad350 100644
--- a/pkgs/development/compilers/polyml/default.nix
+++ b/pkgs/development/compilers/polyml/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl}:
+{stdenv, fetchurl, autoreconfHook}:
 
 let
   version = "5.5.2";
@@ -7,6 +7,12 @@ in
 stdenv.mkDerivation {
   name = "polyml-${version}";
 
+  prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
+    substituteInPlace configure.ac --replace stdc++ c++
+  '';
+
+  buildInputs = stdenv.lib.optional stdenv.isDarwin autoreconfHook;
+
   src = fetchurl {
     url = "mirror://sourceforge/polyml/polyml.${version}.tar.gz";
     sha256 = "10m680qdad6bd50bav9xjsgmsxw8yxg55vr7grbg0gvykzl2pzbk";