Merge pull request #181302 from Artturin/fixcross4

lua-packages: fix eval failure when cross-compiling

Artturi 192e3d44 c5ad016e

Changed files
+15 -10
doc
languages-frameworks
pkgs
applications
video
desktops
development
python-modules
mutagen
ruby-modules
bundler-app
top-level
+4 -2
doc/languages-frameworks/maven.section.md
···
src = builtins.fetchTarball
"https://github.com/fzakaria/nixos-maven-example/archive/main.tar.gz";
-
buildInputs = [ maven makeWrapper ];
+
nativeBuildInputs = [ makeWrapper ];
+
buildInputs = [ maven ];
buildPhase = ''
echo "Using repository ${repository}"
···
src = builtins.fetchTarball
"https://github.com/fzakaria/nixos-maven-example/archive/main.tar.gz";
-
buildInputs = [ maven makeWrapper ];
+
nativeBuildInputs = [ makeWrapper ];
+
buildInputs = [ maven ];
buildPhase = ''
echo "Using repository ${repository}"
+1 -1
doc/languages-frameworks/ruby.section.md
···
gemdir = ./.;
exes = [ "r10k" ];
-
buildInputs = [ makeWrapper ];
+
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/r10k --prefix PATH : ${lib.makeBinPath [ git gnutar gzip ]}
+1 -1
pkgs/applications/video/mpv/wrapper.nix
···
# TODO: don't link all mpv outputs and convert package to mpv-unwrapped?
paths = [ mpv.all ];
-
buildInputs = [ makeWrapper ];
+
nativeBuildInputs = [ makeWrapper ];
passthru.unwrapped = mpv;
+3 -1
pkgs/desktops/gnustep/make/default.nix
···
"GNUSTEP_INSTALLATION_DOMAIN=SYSTEM"
];
-
buildInputs = [ clang which libobjc ];
+
nativeBuildInputs = [ clang which ];
+
buildInputs = [ libobjc ];
+
patches = [ ./fixup-paths.patch ];
setupHook = ./setup-hook.sh;
meta = {
+2 -2
pkgs/desktops/gnustep/make/gsmakeDerivation.nix
···
{ lib, stdenv, make, makeWrapper, which }:
-
{ buildInputs ? [], ...} @ args:
+
{ nativeBuildInputs ? [], ...} @ args:
stdenv.mkDerivation (args // {
-
buildInputs = [ makeWrapper make which ] ++ buildInputs;
+
nativeBuildInputs = [ makeWrapper make which ] ++ nativeBuildInputs;
builder = ./builder.sh;
setupHook = ./setup-hook.sh;
+1 -1
pkgs/development/python-modules/mutagen/default.nix
···
];
postInstall = ''
-
${python.interpreter} setup.py build_sphinx --build-dir=$doc
+
${python.pythonForBuild.interpreter} setup.py build_sphinx --build-dir=$doc
'';
checkInputs = [
+2 -1
pkgs/development/ruby-modules/bundler-app/default.nix
···
, allowSubstitutes ? false
, installManpages ? true
, meta ? {}
+
, nativeBuildInputs ? []
, buildInputs ? []
, postBuild ? ""
, gemConfig ? null
···
cmdArgs = removeAttrs args [ "pname" "postBuild" "gemConfig" "passthru" "gemset" "gemdir" ] // {
inherit preferLocalBuild allowSubstitutes; # pass the defaults
-
buildInputs = buildInputs ++ lib.optional (scripts != []) makeWrapper;
+
nativeBuildInputs = nativeBuildInputs ++ lib.optionals (scripts != []) [ makeWrapper ];
meta = { platforms = ruby.meta.platforms; } // meta;
passthru = basicEnv.passthru // {
+1 -1
pkgs/top-level/lua-packages.nix
···
# wraps programs in $out/bin with valid LUA_PATH/LUA_CPATH
wrapLua = callPackage ../development/interpreters/lua-5/wrap-lua.nix {
inherit lua lib;
-
inherit (pkgs) makeSetupHook makeWrapper;
+
inherit (pkgs.buildPackages) makeSetupHook makeWrapper;
};
luarocks = callPackage ../development/tools/misc/luarocks/default.nix {