Commit Graph

10 Commits

Author SHA1 Message Date
Vladimír Čunát
ddc361cfca
Merge #287594: glibc: 2.38-44 -> 2.39-5
...into staging
2024-03-24 06:41:49 +01:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Maximilian Bosch
2dcdf60272
swift: fix build w/ glibc-2.39
Failing Hydra build: https://hydra.nixos.org/build/249763077/nixlog/12

The problem is that glibc commit
64b1a44183a3094672ed304532bedb9acc707554 marked the `FILE*` argument of a few
functions including `fread` & `ferror` as non-null. The applied patch
("Android: add better nullability checks for nullability annotations added in NDK 26")
is targeted for the Android platform, but fixes said issue as well: the
handle returned from `fopen` is of type `Optional<T>` and the `guard`
expression unwraps that now (and throws an exception if `nil` is
returned). The previous `nil`-check didn't modify the type of `fp`, but
only raised the exception and moved on with `Optional<T>`.

It's a little sad that the patch needs to be applied at so many places,
but I guess that's what you get with language-level package managers 🤷
Also, seems good-enough to me given that it's actually temporary, the
patch is already upstream and will probably be obsolete at one of the
next Swift updates.
2024-03-02 19:01:51 +01:00
Pavel Sobolev
d231730525
sourcekit-lsp: force-unwrap file handles in swift-tools-support-core 2024-01-12 18:54:21 +00:00
figsoda
c05fa24286 sourcekit-lsp: move pkg-config to nativeBuildInputs 2023-05-29 19:52:22 -04:00
Stéphan Kochen
f85d12198f swift: 5.7.3 -> 5.8 2023-04-30 15:03:20 +02:00
Stéphan Kochen
a567024b44 swift: add canary to verify no compiler dependency 2022-11-21 11:36:18 +01:00
Stéphan Kochen
7d559a3cb3 swiftPackages: update swiftpm2nix generated files 2022-11-21 11:04:54 +01:00
Stéphan Kochen
449e2f1b01 swift: track version in a central sources.nix 2022-11-15 14:24:25 +01:00
Stéphan Kochen
ce2dd8b8de sourcekit-lsp: init at 5.7 2022-10-10 21:26:50 +02:00