diff options
author | Lily Ballard <lily@sb.org> | 2019-08-14 16:23:15 -0700 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2019-09-09 04:33:24 -0400 |
commit | d046ab888c0779f4ff209f0d5635e094cffbd235 (patch) | |
tree | 2a18fe430a863a9f91c5df04e40797c4d76125c8 /pkgs/development/interpreters/perl/sw_vers.patch | |
parent | e3f25191c4af029ed071d6ad06547473edb35148 (diff) | |
download | nixlib-d046ab888c0779f4ff209f0d5635e094cffbd235.tar nixlib-d046ab888c0779f4ff209f0d5635e094cffbd235.tar.gz nixlib-d046ab888c0779f4ff209f0d5635e094cffbd235.tar.bz2 nixlib-d046ab888c0779f4ff209f0d5635e094cffbd235.tar.lz nixlib-d046ab888c0779f4ff209f0d5635e094cffbd235.tar.xz nixlib-d046ab888c0779f4ff209f0d5635e094cffbd235.tar.zst nixlib-d046ab888c0779f4ff209f0d5635e094cffbd235.zip |
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/sw_vers.patch')
-rw-r--r-- | pkgs/development/interpreters/perl/sw_vers.patch | 2 |
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 |