From eab3f4d896caa291fbe824efa9e2e1f2cbf6ed16 Mon Sep 17 00:00:00 2001 From: Evangelos Paterakis Date: Sun, 18 Dec 2022 16:53:29 +0200 Subject: [PATCH] fix: darwin compile errors Co-authored-by: Brian J. Cardiff <459923+bcardiff@users.noreply.github.com> --- pkgs/development/compilers/crystal/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/compilers/crystal/default.nix b/pkgs/development/compilers/crystal/default.nix index f8765466328b..720e64469cdd 100644 --- a/pkgs/development/compilers/crystal/default.nix +++ b/pkgs/development/compilers/crystal/default.nix @@ -149,6 +149,11 @@ let # See https://github.com/crystal-lang/crystal/issues/8629 substituteInPlace spec/std/socket/udp_socket_spec.cr \ --replace 'it "joins and transmits to multicast groups"' 'pending "joins and transmits to multicast groups"' + + '' + lib.optionalString (stdenv.isDarwin && versionOlder version "1.3.0") '' + # See https://github.com/NixOS/nixpkgs/pull/195606#issuecomment-1356491277 + substituteInPlace spec/compiler/loader/unix_spec.cr \ + --replace 'it "parses file paths"' 'pending "parses file paths"' ''; # Defaults are 4 @@ -156,6 +161,7 @@ let export CRYSTAL_WORKERS=$NIX_BUILD_CORES export threads=$NIX_BUILD_CORES export CRYSTAL_CACHE_DIR=$TMP + export MACOSX_DEPLOYMENT_TARGET="10.11" '';