about summary refs log tree commit diff
path: root/pkgs/development/compilers/crystal
diff options
context:
space:
mode:
authorGeopJr <evan@geopjr.dev>2022-12-18 18:42:51 +0200
committerGitHub <noreply@github.com>2022-12-18 18:42:51 +0200
commit44073f6d1667ba1c723a6240b91ebacb3e72ee05 (patch)
tree4bf0933164af79b660e5b5ce5a91a6e46f1a5b8e /pkgs/development/compilers/crystal
parent3efc4e5f0365462048da25bed62d1b237f733a55 (diff)
fix: version limits on unix_spec
Diffstat (limited to 'pkgs/development/compilers/crystal')
-rw-r--r--pkgs/development/compilers/crystal/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/compilers/crystal/default.nix b/pkgs/development/compilers/crystal/default.nix
index f1143572956b7..ef835ff69f0a3 100644
--- a/pkgs/development/compilers/crystal/default.nix
+++ b/pkgs/development/compilers/crystal/default.nix
@@ -150,7 +150,7 @@ let
         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 && lib.versionOlder version "1.3.0") ''
+      '' + lib.optionalString (stdenv.isDarwin && lib.versionAtLeast version "1.3.0" && lib.versionOlder version "1.7.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"'
@@ -161,7 +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"
+        export MACOSX_DEPLOYMENT_TARGET=10.11
       '';