Merge pull request #181302 from Artturin/fixcross4

lua-packages: fix eval failure when cross-compiling

authored by Artturi and committed by GitHub 192e3d44 c5ad016e

+15 -10
+4 -2
doc/languages-frameworks/maven.section.md
··· 233 234 src = builtins.fetchTarball 235 "https://github.com/fzakaria/nixos-maven-example/archive/main.tar.gz"; 236 - buildInputs = [ maven makeWrapper ]; 237 238 buildPhase = '' 239 echo "Using repository ${repository}" ··· 310 311 src = builtins.fetchTarball 312 "https://github.com/fzakaria/nixos-maven-example/archive/main.tar.gz"; 313 - buildInputs = [ maven makeWrapper ]; 314 315 buildPhase = '' 316 echo "Using repository ${repository}"
··· 233 234 src = builtins.fetchTarball 235 "https://github.com/fzakaria/nixos-maven-example/archive/main.tar.gz"; 236 + nativeBuildInputs = [ makeWrapper ]; 237 + buildInputs = [ maven ]; 238 239 buildPhase = '' 240 echo "Using repository ${repository}" ··· 311 312 src = builtins.fetchTarball 313 "https://github.com/fzakaria/nixos-maven-example/archive/main.tar.gz"; 314 + nativeBuildInputs = [ makeWrapper ]; 315 + buildInputs = [ maven ]; 316 317 buildPhase = '' 318 echo "Using repository ${repository}"
+1 -1
doc/languages-frameworks/ruby.section.md
··· 274 gemdir = ./.; 275 exes = [ "r10k" ]; 276 277 - buildInputs = [ makeWrapper ]; 278 279 postBuild = '' 280 wrapProgram $out/bin/r10k --prefix PATH : ${lib.makeBinPath [ git gnutar gzip ]}
··· 274 gemdir = ./.; 275 exes = [ "r10k" ]; 276 277 + nativeBuildInputs = [ makeWrapper ]; 278 279 postBuild = '' 280 wrapProgram $out/bin/r10k --prefix PATH : ${lib.makeBinPath [ git gnutar gzip ]}
+1 -1
pkgs/applications/video/mpv/wrapper.nix
··· 64 # TODO: don't link all mpv outputs and convert package to mpv-unwrapped? 65 paths = [ mpv.all ]; 66 67 - buildInputs = [ makeWrapper ]; 68 69 passthru.unwrapped = mpv; 70
··· 64 # TODO: don't link all mpv outputs and convert package to mpv-unwrapped? 65 paths = [ mpv.all ]; 66 67 + nativeBuildInputs = [ makeWrapper ]; 68 69 passthru.unwrapped = mpv; 70
+3 -1
pkgs/desktops/gnustep/make/default.nix
··· 22 "GNUSTEP_INSTALLATION_DOMAIN=SYSTEM" 23 ]; 24 25 - buildInputs = [ clang which libobjc ]; 26 patches = [ ./fixup-paths.patch ]; 27 setupHook = ./setup-hook.sh; 28 meta = {
··· 22 "GNUSTEP_INSTALLATION_DOMAIN=SYSTEM" 23 ]; 24 25 + nativeBuildInputs = [ clang which ]; 26 + buildInputs = [ libobjc ]; 27 + 28 patches = [ ./fixup-paths.patch ]; 29 setupHook = ./setup-hook.sh; 30 meta = {
+2 -2
pkgs/desktops/gnustep/make/gsmakeDerivation.nix
··· 1 { lib, stdenv, make, makeWrapper, which }: 2 - { buildInputs ? [], ...} @ args: 3 stdenv.mkDerivation (args // { 4 - buildInputs = [ makeWrapper make which ] ++ buildInputs; 5 6 builder = ./builder.sh; 7 setupHook = ./setup-hook.sh;
··· 1 { lib, stdenv, make, makeWrapper, which }: 2 + { nativeBuildInputs ? [], ...} @ args: 3 stdenv.mkDerivation (args // { 4 + nativeBuildInputs = [ makeWrapper make which ] ++ nativeBuildInputs; 5 6 builder = ./builder.sh; 7 setupHook = ./setup-hook.sh;
+1 -1
pkgs/development/python-modules/mutagen/default.nix
··· 33 ]; 34 35 postInstall = '' 36 - ${python.interpreter} setup.py build_sphinx --build-dir=$doc 37 ''; 38 39 checkInputs = [
··· 33 ]; 34 35 postInstall = '' 36 + ${python.pythonForBuild.interpreter} setup.py build_sphinx --build-dir=$doc 37 ''; 38 39 checkInputs = [
+2 -1
pkgs/development/ruby-modules/bundler-app/default.nix
··· 27 , allowSubstitutes ? false 28 , installManpages ? true 29 , meta ? {} 30 , buildInputs ? [] 31 , postBuild ? "" 32 , gemConfig ? null ··· 39 cmdArgs = removeAttrs args [ "pname" "postBuild" "gemConfig" "passthru" "gemset" "gemdir" ] // { 40 inherit preferLocalBuild allowSubstitutes; # pass the defaults 41 42 - buildInputs = buildInputs ++ lib.optional (scripts != []) makeWrapper; 43 44 meta = { platforms = ruby.meta.platforms; } // meta; 45 passthru = basicEnv.passthru // {
··· 27 , allowSubstitutes ? false 28 , installManpages ? true 29 , meta ? {} 30 + , nativeBuildInputs ? [] 31 , buildInputs ? [] 32 , postBuild ? "" 33 , gemConfig ? null ··· 40 cmdArgs = removeAttrs args [ "pname" "postBuild" "gemConfig" "passthru" "gemset" "gemdir" ] // { 41 inherit preferLocalBuild allowSubstitutes; # pass the defaults 42 43 + nativeBuildInputs = nativeBuildInputs ++ lib.optionals (scripts != []) [ makeWrapper ]; 44 45 meta = { platforms = ruby.meta.platforms; } // meta; 46 passthru = basicEnv.passthru // {
+1 -1
pkgs/top-level/lua-packages.nix
··· 60 # wraps programs in $out/bin with valid LUA_PATH/LUA_CPATH 61 wrapLua = callPackage ../development/interpreters/lua-5/wrap-lua.nix { 62 inherit lua lib; 63 - inherit (pkgs) makeSetupHook makeWrapper; 64 }; 65 66 luarocks = callPackage ../development/tools/misc/luarocks/default.nix {
··· 60 # wraps programs in $out/bin with valid LUA_PATH/LUA_CPATH 61 wrapLua = callPackage ../development/interpreters/lua-5/wrap-lua.nix { 62 inherit lua lib; 63 + inherit (pkgs.buildPackages) makeSetupHook makeWrapper; 64 }; 65 66 luarocks = callPackage ../development/tools/misc/luarocks/default.nix {