Refactored to use callPackage right

This commit is contained in:
wyvie 2014-09-23 10:52:10 +04:00 committed by Domen Kožar
parent 6bd2f75f1c
commit 124ccae2e8
2 changed files with 3 additions and 6 deletions

View File

@ -3755,9 +3755,9 @@ let
lua5 = lua5_2_compat;
lua = lua5;
lua51Packages = recurseIntoAttrs (callPackage ./lua-packages.nix pkgs lua5_1);
lua51Packages = recurseIntoAttrs (callPackage ./lua-packages.nix { lua = lua5_1; });
lua52Packages = recurseIntoAttrs (callPackage ./lua-packages.nix pkgs lua5_2);
lua52Packages = recurseIntoAttrs (callPackage ./lua-packages.nix { lua = lua5_2; });
luaPackages = lua52Packages;

View File

@ -5,13 +5,10 @@
for each package in a separate file: the call to the function would
be almost as must code as the function itself. */
pkgs:
lua:
{fetchurl, stdenv, lua}:
let self = _self; _self = with self; {
inherit (pkgs) fetchurl stdenv;
inherit (stdenv.lib) maintainers;
#define build lua package function