about summary refs log tree commit diff
path: root/pkgs/development/interpreters/lua-5
diff options
context:
space:
mode:
authorMatthieu C. <886074+teto@users.noreply.github.com>2024-07-04 01:43:51 +0200
committerMatthieu Coudron <886074+teto@users.noreply.github.com>2024-07-05 13:32:47 +0200
commit8a0c6be4586693dbd008f692de756d3d8c861fbc (patch)
tree3422835b16a91523c82f49641b133f11d8e1f6b0 /pkgs/development/interpreters/lua-5
parent888d6fe1720d252dc7ce3cdba9f5e522cac4d7ae (diff)
generateLuarocksConfig: dont hardcode local_cache
I tried using luaLib.generateLuarocksConfig outside nixpkgs, to generate a rocks.nvim config but it adds a `local_cache = ""` configuration line that is painful to remove so let's not add it in the first place, and let the caller set it if needed.
Diffstat (limited to 'pkgs/development/interpreters/lua-5')
-rw-r--r--pkgs/development/interpreters/lua-5/build-luarocks-package.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/lua-5/build-luarocks-package.nix b/pkgs/development/interpreters/lua-5/build-luarocks-package.nix
index 6f3342d057bd1..55bd577e46d1a 100644
--- a/pkgs/development/interpreters/lua-5/build-luarocks-package.nix
+++ b/pkgs/development/interpreters/lua-5/build-luarocks-package.nix
@@ -132,6 +132,8 @@ let
 
     generatedConfig = luaLib.generateLuarocksConfig {
       externalDeps = lib.unique (self.externalDeps ++ externalDepsGenerated);
+      local_cache = "";
+
       # Filter out the lua derivation itself from the Lua module dependency
       # closure, as it doesn't have a rock tree :)
       # luaLib.hasLuaModule