From 612c8165965b9c916a8f820a6f30c80abff95a96 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Sun, 14 Apr 2019 16:41:11 +0900 Subject: [PATCH] buildLuarocksPackage: forcefully create $out Allows to work around https://github.com/luarocks/luarocks/issues/988 on darwin --- pkgs/development/interpreters/lua-5/build-lua-package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/interpreters/lua-5/build-lua-package.nix b/pkgs/development/interpreters/lua-5/build-lua-package.nix index 6b356831b3b..bc41d86256b 100644 --- a/pkgs/development/interpreters/lua-5/build-lua-package.nix +++ b/pkgs/development/interpreters/lua-5/build-lua-package.nix @@ -150,6 +150,9 @@ builtins.removeAttrs attrs ["disabled" "checkInputs"] // { installPhase = attrs.installPhase or '' runHook preInstall + # work around failing luarocks test for Write access + mkdir -p $out + # luarocks make assumes sources are available in cwd # After the build is complete, it also installs the rock. # If no argument is given, it looks for a rockspec in the current directory