about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/luarocks/darwin-3.0.x.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/misc/luarocks/darwin-3.0.x.patch')
-rw-r--r--nixpkgs/pkgs/development/tools/misc/luarocks/darwin-3.0.x.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/development/tools/misc/luarocks/darwin-3.0.x.patch b/nixpkgs/pkgs/development/tools/misc/luarocks/darwin-3.0.x.patch
index a5e4ac461b48..013ac5180afa 100644
--- a/nixpkgs/pkgs/development/tools/misc/luarocks/darwin-3.0.x.patch
+++ b/nixpkgs/pkgs/development/tools/misc/luarocks/darwin-3.0.x.patch
@@ -10,7 +10,7 @@ index f93e67a..2eb2db9 100644
 +      defaults.variables.STAT = "stat"
        defaults.variables.STATFLAG = "-f '%A'"
 -      local version = util.popen_read("sw_vers -productVersion")
-+      local version = "10.10"
++      local version = os.getenv("MACOSX_DEPLOYMENT_TARGET") or "10.12"
        version = tonumber(version and version:match("^[^.]+%.([^.]+)")) or 3
        if version >= 10 then
           version = 8