Nix/src
Maximilian Bosch 81499a0b93
libexpr: print value of what is attempted to be called as function
Low-hanging fruit in the spirit of #9753 and #9754 (means 9999years did
all the hard work already).

This basically prints out what was attempted to be called as function,
i.e.

  map (import <nixpkgs> {}) [ 1 2 3 ]

now gives the following error message:

    error:
           … while calling the 'map' builtin
             at «string»:1:1:
                1| map (import <nixpkgs> {}) [ 1 2 3 ]
                 | ^

           … while evaluating the first argument passed to builtins.map

           error: expected a function but found a set: { _type = "pkgs"; AAAAAASomeThingsFailToEvaluate = «thunk»; AMB-plugins = «thunk»; ArchiSteamFarm = «thunk»; BeatSaberModManager = «thunk»; CHOWTapeModel = «thunk»; ChowCentaur = «thunk»; ChowKick = «thunk»; ChowPhaser = «thunk»; CoinMP = «thunk»;  «18783 attributes elided»}
2024-01-22 22:41:42 +01:00
..
build-remote Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
libcmd DerivationInfo -> PackageInfo 2024-01-16 15:28:03 +01:00
libexpr libexpr: print value of what is attempted to be called as function 2024-01-22 22:41:42 +01:00
libfetchers fetchTree/fetchGit: re-enable shallow fetching 2024-01-19 20:30:47 +07:00
libmain Use buildprefix in a few more places 2023-11-29 19:49:07 -05:00
libstore Factor our ServeProto::BasicServerConnection::handshake 2024-01-22 12:43:11 -05:00
libutil Print value on type error 2024-01-22 08:56:02 -08:00
nix Print value on type error 2024-01-22 08:56:02 -08:00
nix-build DerivationInfo -> PackageInfo 2024-01-16 15:28:03 +01:00
nix-channel Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-collect-garbage Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-copy-closure Restrict some code to StoreDirConfig 2023-11-04 19:05:36 -04:00
nix-env DerivationInfo -> PackageInfo 2024-01-16 15:28:03 +01:00
nix-instantiate DerivationInfo -> PackageInfo 2024-01-16 15:28:03 +01:00
nix-store Factor our ServeProto::BasicServerConnection::handshake 2024-01-22 12:43:11 -05:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00