Change:
Describe the bug I have neovim in my systemPackages, I did and today and it stuck at building luajit: To Reproduce Steps to reproduce the behavior: to Expected behavior The system should upgrade properly. Additional context Output: Metadata system: host os: multi-user?: sandbox: version: channels(root): channels(kj): nixpkgs: Maintainer information:
Possible fix is in . There was already an open issue about it () but from an unclear reason people have reached the conclusion it was fixed on latest master.
Oh I meant , not .
Well, I agree with that conclusion. For me, on the build is broken with the error above and on current master it isn't. EDIT: note that the channels lag behind, usually less than a couple days, but sometimes we get a week or two due to some harder regression.
Yea right. For me on NixOS I tried with the nixpkgs-unstable channel and could install successfully. The nixos-unstable still fails though.

Discussion:
# Appended to the generated luarocks config , extraConfig ? "" # Inserted into the generated luarocks config in the "variables" table <del> , extraVariables ? "" </del> <ins> , extraVariables ? {} </ins> # The two above arguments have access to builder variables -- e.g. to $out # relative to srcRoot, path to the rockspec to use when using rocks

# luarocks only looks for rockspecs in the default/system tree instead of all # configured trees) luarocks_config = "luarocks-config.lua"; <del> luarocks_content = '' </del> <ins> luarocks_content = let extraVariablesStr = lib.concatStringsSep "n " (lib.mapAttrsToList (k: v: "${k}='${v}';") extraVariables); in '' </ins> local_cache = "" -- To prevent collisions when creating environments, we install the rock -- files into per-package subdirectories

-- Some needed machinery to handle multiple-output external dependencies, -- as per https://github.com/luarocks/luarocks/issues/766 ${lib.optionalString (lib.length depVariables > 0) '' <del> ${lib.concatStringsSep "n  " depVariables}''} ${extraVariables} </del> <ins> ${lib.concatStringsSep "n  " depVariables}''} ${extraVariablesStr} </ins> } ${extraConfig} '';

externalDeps' = lib.filter (dep: !lib.isDerivation dep) externalDeps; in toLuaModule ( lua.stdenv.mkDerivation ( <del> builtins.removeAttrs attrs ["disabled" "checkInputs" "externalDeps"] // { </del> <ins> builtins.removeAttrs attrs ["disabled" "checkInputs" "externalDeps" "extraVariables"] // { </ins> name = namePrefix + name;

LUAROCKS="$LUAROCKS --verbose" fi <del> patchShebangs . </del> runHook postBuild '';

runHook postInstall ''; <ins> checkPhase = attrs.checkPhase or '' runHook preCheck $LUAROCKS test runHook postCheck ''; </ins> passthru = { inherit lua; # The lua interpreter inherit externalDeps;

}); luadbi-mysql = super.luadbi-mysql.override({ <del> extraVariables = '' -- Can't just be /include and /lib, unfortunately needs the trailing 'mysql' MYSQL_INCDIR='${pkgs.libmysqlclient}/include/mysql'; MYSQL_LIBDIR='${pkgs.libmysqlclient}/lib/mysql'; ''; </del> <ins> extraVariables = { # Can't just be /include and /lib, unfortunately needs the trailing 'mysql' MYSQL_INCDIR="${pkgs.libmysqlclient}/include/mysql"; MYSQL_LIBDIR="${pkgs.libmysqlclient}/lib/mysql"; }; </ins> buildInputs = [ pkgs.mysql.client pkgs.libmysqlclient