diff options
author | Matthieu Coudron <886074+teto@users.noreply.github.com> | 2024-02-11 15:09:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 15:09:01 +0100 |
commit | 089f45ce691aa3b26d52f9b718a205af2493a455 (patch) | |
tree | c6c589ea2bc124e66aef19695159858f38a3f6f3 /pkgs/development/interpreters/lua-5 | |
parent | c95210495f9575360f5333521e2ef1a00578d04d (diff) |
buildLuarocksPackage: remove rockspecDir (#288036)
it was used only once and complexifies the buildLuarocksPackage function uselessly. because buildLuarocksPackage accepts ... args, it wont trigger eval failures but this may break out of tree packages where the build can't find the rockspec anymore. Specify the path via `knownRockspec` if that's the case.
Diffstat (limited to 'pkgs/development/interpreters/lua-5')
-rw-r--r-- | pkgs/development/interpreters/lua-5/build-luarocks-package.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/development/interpreters/lua-5/build-luarocks-package.nix b/pkgs/development/interpreters/lua-5/build-luarocks-package.nix index c388d0eef8c1d..ea46fd107980c 100644 --- a/pkgs/development/interpreters/lua-5/build-luarocks-package.nix +++ b/pkgs/development/interpreters/lua-5/build-luarocks-package.nix @@ -57,8 +57,6 @@ # relative to srcRoot, path to the rockspec to use when using rocks , rockspecFilename ? null -# relative to srcRoot, path to folder that contains the expected rockspec -, rockspecDir ? "." # must be set for packages that don't have a rock , knownRockspec ? null @@ -87,7 +85,7 @@ let LUAROCKS_CONFIG = self.configFile; } // attrs.env or {}; - generatedRockspecFilename = "${rockspecDir}/${pname}-${rockspecVersion}.rockspec"; + generatedRockspecFilename = "./${self.pname}-${self.rockspecVersion}.rockspec"; nativeBuildInputs = [ wrapLua |