diff options
| author | Sergei Trofimovich <slyich@gmail.com> | 2023-12-28 15:28:09 +0000 |
|---|---|---|
| committer | Sergei Trofimovich <slyich@gmail.com> | 2023-12-28 15:29:29 +0000 |
| commit | 3f3e74bc93d4d2ccbff8c5cfa913daf7f1baec3f (patch) | |
| tree | f979103cf28ac675b3e2251b8dabfc76f242a965 /pkgs/development/python-modules/rangehttpserver | |
| parent | 26270cb605b932d2d8187ba47e4ed77a1b74e11f (diff) | |
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`.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
