nixpkgs/pkgs/top-level
Artturin 4a25775546 lua-packages: fix eval failure when cross-compiling
remove the inherit line did not work

fixes mpv for example

nix-repl> pkgsCross.aarch64-multiplatform.lua.withPackages (ps: with ps; [ luasocket ])
error: attribute 'runtimeShell' missing

       at /home/artturin/nixgits/my-nixpkgs/pkgs/top-level/all-packages.nix:849:17:

          848|       substitutions = {
          849|         shell = targetPackages.runtimeShell;
             |                 ^
          850|         passthru.tests = tests.makeWrapper;

       … while evaluating the attribute 'shell' of the derivation 'hook'

       at /home/artturin/nixgits/my-nixpkgs/pkgs/stdenv/generic/make-derivation.nix:270:7:

          269|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          270|       name =
             |       ^
          271|         let

       … while evaluating 'optionalString'

       at /home/artturin/nixgits/my-nixpkgs/lib/strings.nix:203:5:

          202|     # String to return if condition is true
          203|     string: if cond then string else "";
             |     ^
          204|

       … from call site

       at /home/artturin/nixgits/my-nixpkgs/pkgs/build-support/trivial-builders.nix:536:12:

          535|         cp ${script} $out/nix-support/setup-hook
          536|       '' + lib.optionalString (deps != []) ''
             |            ^
          537|         printWords ${toString deps} > $out/nix-support/propagated-build-inputs

       … while evaluating the attribute 'buildCommand' of the derivation 'hook'

       at /home/artturin/nixgits/my-nixpkgs/pkgs/stdenv/generic/make-derivation.nix:270:7:

          269|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          270|       name =
             |       ^
          271|         let

       … while evaluating anonymous lambda

       at /home/artturin/nixgits/my-nixpkgs/lib/lists.nix:646:25:

          645|    */
          646|   unique = foldl' (acc: e: if elem e acc then acc else acc ++ [ e ]) [];
             |                         ^
          647|

       … from call site

       at /home/artturin/nixgits/my-nixpkgs/pkgs/development/interpreters/lua-5/build-lua-package.nix:105:27:

          104|   # example externalDeps': [ { name = "CRYPTO"; dep = pkgs.openssl; } ]
          105|   externalDepsGenerated = lib.unique (lib.filter (drv: !drv ? luaModule) (
             |                           ^
          106|     luarocksDrv.nativeBuildInputs ++ luarocksDrv.propagatedBuildInputs ++ luarocksDrv.buildInputs)

       … while evaluating 'generateLuarocksConfig'

       at /home/artturin/nixgits/my-nixpkgs/pkgs/development/lua-modules/lib.nix:83:28:

           82|   */
           83|   generateLuarocksConfig = {
             |                            ^
           84|     externalDeps

       … from call site

       at /home/artturin/nixgits/my-nixpkgs/pkgs/development/interpreters/lua-5/build-lua-package.nix:85:23:

           84|   luarocks_content = let
           85|     generatedConfig = lua.pkgs.lib.generateLuarocksConfig {
             |                       ^
           86|       externalDeps = externalDeps ++ externalDepsGenerated;

       … while evaluating the attribute 'configurePhase' of the derivation 'lua5.2-luasocket-3.0.0-1-aarch64-unknown-linux-gnu'

       at /home/artturin/nixgits/my-nixpkgs/pkgs/stdenv/generic/make-derivation.nix:270:7:

          269|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          270|       name =
             |       ^
          271|         let

       … while evaluating anonymous lambda

       at /home/artturin/nixgits/my-nixpkgs/lib/lists.nix:646:25:

          645|    */
          646|   unique = foldl' (acc: e: if elem e acc then acc else acc ++ [ e ]) [];
             |                         ^
          647|

       … from call site

       at /home/artturin/nixgits/my-nixpkgs/pkgs/development/lua-modules/lib.nix:5:6:

            4|     modules =  filter hasLuaModule drvs;
            5|   in unique ([lua] ++ modules ++ concatLists (catAttrs "requiredLuaModules" modules));
             |      ^
            6|   # Check whether a derivation provides a lua module.

       … while evaluating 'requiredLuaModules'

       at /home/artturin/nixgits/my-nixpkgs/pkgs/development/lua-modules/lib.nix:3:24:

            2| let
            3|   requiredLuaModules = drvs: with lib; let
             |                        ^
            4|     modules =  filter hasLuaModule drvs;

       … from call site

       at /home/artturin/nixgits/my-nixpkgs/pkgs/development/interpreters/lua-5/wrapper.nix:13:14:

           12|   env = let
           13|     paths =  requiredLuaModules (extraLibs ++ [ lua ] );
             |              ^
           14|   in buildEnv {

       … while evaluating the attribute 'passAsFile'

       at /home/artturin/nixgits/my-nixpkgs/pkgs/build-support/buildenv/default.nix:77:5:

           76|     # XXX: The size is somewhat arbitrary
           77|     passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
             |     ^
           78|   }

       … while evaluating the attribute 'passAsFile' of the derivation 'lua-aarch64-unknown-linux-gnu-5.2.4-env'

       at /home/artturin/nixgits/my-nixpkgs/pkgs/stdenv/generic/make-derivation.nix:270:7:

          269|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          270|       name =
             |       ^
          271|         let
2022-07-14 22:08:55 +03:00
..
agda-packages.nix
aliases.nix konversation: Update/move to KDE Gear 2022-07-11 14:24:50 +08:00
all-packages.nix Merge staging-next into staging 2022-07-14 06:02:10 +00:00
beam-packages.nix erlang: remove r16-basho 2022-06-27 12:52:20 -04:00
config.nix config.configurePlatformsByDefault: init option 2022-06-21 09:23:13 +01:00
coq-packages.nix Split out CoqIDE by default when Coq >= 8.14. 2022-07-10 15:49:44 +02:00
cubocore-packages.nix
cuda-packages.nix
darwin-packages.nix apple_sdk_11_0: fix build on x86_64-darwin and expose as attribute 2022-07-06 19:41:17 -04:00
default.nix
dhall-packages.nix
dotnet-packages.nix
emacs-packages.nix
emscripten-packages.nix
gnuradio-packages.nix
haskell-packages.nix haskell.compiler.ghc865Binary: add powerpc64le bootstrap 2022-07-01 13:05:30 +02:00
haxe-packages.nix haxePackages.heaps: init at 1.9.1 2022-06-29 15:26:18 +00:00
impure.nix
java-packages.nix
kodi-packages.nix kodi.packages.invidious: init at 0.1.0+matrix.1 2022-07-03 10:29:10 -04:00
linux-kernels.nix top-level/linux-kernels.nix: add vendor kernels note 2022-07-01 09:47:24 +00:00
lua-packages.nix lua-packages: fix eval failure when cross-compiling 2022-07-14 22:08:55 +03:00
make-tarball.nix maintainers: remove all 2022-06-29 00:52:14 +02:00
metrics.nix Revert "metrics job: schedule on any machine, for now" 2022-06-12 13:45:06 +02:00
nim-packages.nix
nixpkgs-basic-release-checks.nix nixpkgs-basic-release-checks: check for case-insensitive path conflicts 2022-07-04 18:30:36 +09:00
ocaml-packages.nix ocamlPackages.nocrypto: remove at 0.5.4 2022-07-09 14:24:02 +02:00
octave-packages.nix
packages-config.nix
perl-packages.nix Merge pull request #173454 from qbit/p5-rex 2022-07-01 23:02:40 +02:00
php-packages.nix phpPackage.mkExtension: makeOverridable 2022-06-24 17:35:48 +03:00
python-aliases.nix python3.pkgs.graphite_api: remove 2022-07-10 09:46:20 +00:00
python-packages.nix Merge pull request #177538 from Artturin/fixcross3 2022-07-12 16:14:46 +03:00
python2-packages.nix
qt5-packages.nix
qt6-packages.nix
release-alternatives.nix
release-cross.nix add --arg supportedSystems '[builtins.currentSystem]' 2022-07-11 13:21:00 -07:00
release-cuda.nix
release-haskell.nix haskellPackages.purescript: adjust for 0.15.4 2022-07-06 21:45:09 +02:00
release-lib.nix release-lib.nix: make packagePlatforms respect badPlatforms 2022-06-18 14:53:25 +02:00
release-python.nix
release-r.nix
release-small.nix
release.nix Revert "Revert "release: add tests.packageTestsForChannelBlockers.curl.withCh…" 2022-07-12 15:34:22 +03:00
ruby-packages.nix ruby-packages: update 2022-06-30 16:20:26 -07:00
splice.nix
stage.nix
unixtools.nix
wine-packages.nix