summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/perl
diff options
context:
space:
mode:
authorLily Ballard <lily@sb.org>2019-08-14 16:23:15 -0700
committerworldofpeace <worldofpeace@protonmail.ch>2019-09-09 04:33:24 -0400
commitd046ab888c0779f4ff209f0d5635e094cffbd235 (patch)
tree2a18fe430a863a9f91c5df04e40797c4d76125c8 /pkgs/development/interpreters/perl
parente3f25191c4af029ed071d6ad06547473edb35148 (diff)
perl: Update detected platform version
Instead of hardcoding the version as 10.10, we should just detect it as being MACOSX_DEPLOYMENT_TARGET.
Diffstat (limited to 'pkgs/development/interpreters/perl')
-rw-r--r--pkgs/development/interpreters/perl/sw_vers.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/perl/sw_vers.patch b/pkgs/development/interpreters/perl/sw_vers.patch
index 9d4cd75486e6..2e30dba92924 100644
--- a/pkgs/development/interpreters/perl/sw_vers.patch
+++ b/pkgs/development/interpreters/perl/sw_vers.patch
@@ -7,7 +7,7 @@ index afadf53..80b7533 100644
# "ProductVersion: 10.10.5" "10.10"
# "ProductVersion: 10.11" "10.11"
- prodvers=`sw_vers|awk '/^ProductVersion:/{print $2}'|awk -F. '{print $1"."$2}'`
-+ prodvers="10.10"
++ prodvers="${MACOSX_DEPLOYMENT_TARGET:-10.12}"
case "$prodvers" in
10.*)
add_macosx_version_min ccflags $prodvers