luarocks: use self.pname for an effective overrideAttrs

luarocks-nix store path was ..luarocks-version instead of ...luarocks-nix-version. This fixes it
This commit is contained in:
Matthieu C. 2024-06-24 19:40:33 +02:00 committed by Matthieu Coudron
parent ca1654d325
commit e511f674e1

View File

@ -78,7 +78,7 @@ let
luarocksDrv = luaLib.toLuaModule ( lua.stdenv.mkDerivation (self: attrs // {
name = namePrefix + pname + "-" + self.version;
name = namePrefix + self.pname + "-" + self.version;
inherit rockspecVersion;
__structuredAttrs = true;
@ -114,7 +114,7 @@ let
rocksSubdir = "${self.pname}-${self.version}-rocks";
configFile = writeTextFile {
name = pname + "-luarocks-config.lua";
name = self.pname + "-luarocks-config.lua";
text = self.luarocks_content;
};