Commit Graph

8 Commits

Author SHA1 Message Date
·𐑑𐑴𐑕𐑑𐑩𐑤
c52cb8ad57 ocamlPackages.eio: 1.3 → 1.4 2026-07-27 21:48:36 -07:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Alyssa Ross
1461dbbee3 ocamlPackages.eio_*: inherit patches from eio
If we're inheriting src from eio to use the same source tree, it makes
sense to inherit patches as well.  Currently we don't apply patches to
eio, but this is useful for overlays, and will help avoid a potential
oversight if we do need a patch in future.
2024-05-23 16:34:29 +02:00
toastal
f60921aeed ocamlPackages.eio: 0.12 → 0.13 (#265029)
But hold onto 0.12 for OCaml 5.0
https://github.com/ocaml-multicore/eio/releases/tag/v0.13
2023-11-03 20:42:04 +01:00
Daniel Quernheim
21c9f7de22 ocamlPackages.eio_main: depend on eio_linux instead of uring
Otherwise, Eio falls back to using the POSIX backend or fails with "The io_uring backend was disabled at compile-time"
2023-07-16 09:51:14 +02:00
toastal
a748ffdb6e ocamlPackages.eio: init at 0.10 2023-06-13 13:17:47 +07:00