mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
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.
This commit is contained in:
parent
888d6fe172
commit
8a0c6be458
@ -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
|
||||
|
@ -124,7 +124,6 @@ rec {
|
||||
(lib.filter (lib.isDerivation) externalDeps);
|
||||
|
||||
generatedConfig = ({
|
||||
local_cache = "";
|
||||
|
||||
# To prevent collisions when creating environments, we install the rock
|
||||
# files into per-package subdirectories
|
||||
|
Loading…
Reference in New Issue
Block a user