nixpkgs/pkgs/stdenv
Sergei Trofimovich 3f3e74bc93 stdenv: fix eval of pkgsMusl packages with platform constraints
Before the change `pkgsMusl.adobe-reader` was failing the interpreter:

    $ nix-instantiate --eval --strict --expr 'with import ./. {}; builtins.tryEval pkgsMusl.adobe-reader'
error:
       error: evaluation aborted with the following error message: 'unsupported platform for the pure Linux stdenv'

After the change `pkgsMusl.adobe-reader` returns catchable excation:

    $ nix-instantiate --eval --strict --expr 'with import ./. {}; builtins.tryEval pkgsMusl.adobe-reader'
    { success = false; value = false; }

Noticed when was exploring `nixpkgs` for uncatchable evaluation errors.
Ideally those should only happen when there is a code bug in the use
site. In this case it's just a package with incompatible constraints for
`musl`.

Changed uncatchable `abort` to `throw`.
2023-12-28 15:29:29 +00:00
..
cross
custom
cygwin
darwin darwin/make-bootstrap-tools.nix: set -headerpad_max_install_names for coreutils 2023-12-13 17:57:25 +00:00
freebsd
generic Merge pull request #269546 from adisbladis/stdenv-meta-no-intermediate-alloc 2023-12-12 10:57:44 +13:00
linux stdenv: fix eval of pkgsMusl packages with platform constraints 2023-12-28 15:29:29 +00:00
native
nix
tests
adapters.nix
booter.nix
default.nix