@@ -22,7 +22,8 @@ stdenv.mkDerivation rec {
2222 patchShebangs --build tests
2323 '';
2424
25− makeFlags = [ "PREFIX=$(out)" ];
25+ makeFlags = [ "PREFIX=$(out)" ]
26+ ++ stdenv.lib.optional stdenv.isDarwin "OS=";
2627
2728 # The name of the main executable of pkgs.chez is `scheme`
2829 buildFlags = [ "bootstrap-build" "SCHEME=scheme" ];
@@ -36,9 +37,9 @@ stdenv.mkDerivation rec {
3637
3738 meta = {
3839 description = "A purely functional programming language with first class types";
39− homepage = https://github.com/idris-lang/Idris2;
40+ homepage = "https://github.com/idris-lang/Idris2";
4041 license = stdenv.lib.licenses.bsd3;
4142 maintainers = with stdenv.lib.maintainers; [ wchresta ];
43+ inherit (chez.meta) platforms;
4244 };
4345}
44−