luarocks: change self to finalAttrs
This commit is contained in:
parent
cb1c86036f
commit
c910d4628a
1 changed files with 3 additions and 3 deletions
|
@ -17,14 +17,14 @@
|
|||
, installShellFiles
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (self: {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "luarocks";
|
||||
version = "3.9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "luarocks";
|
||||
repo = "luarocks";
|
||||
rev = "v${self.version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-G6HDap3pspeQtGDBq+ukN7kftDaT/CozMVdYM60F6HI=";
|
||||
};
|
||||
|
||||
|
@ -76,7 +76,7 @@ stdenv.mkDerivation (self: {
|
|||
--suffix LUA_CPATH ";" "$(echo "$out"/lib/lua/*/)?.so" \
|
||||
--suffix LUA_CPATH ";" "$(echo "$out"/share/lua/*/)?/init.lua" \
|
||||
--suffix PATH : ${lib.makeBinPath ([ unzip ] ++
|
||||
lib.optionals (self.pname == "luarocks-nix") [ file nix-prefetch-git ])}
|
||||
lib.optionals (finalAttrs.pname == "luarocks-nix") [ file nix-prefetch-git ])}
|
||||
}
|
||||
done
|
||||
'' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
|
|
Loading…
Reference in a new issue