Commit Graph

18 Commits

Author SHA1 Message Date
Guy Chronister
9821096d98 ocamlPackages.ocplib-endian: migrate to finalAttrs 2026-05-12 13:28:25 -05:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +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
Vincent Laporte
67a752bf71 ocamlPackages.ocplib-endian: fix for OCaml 5.0 2023-05-26 08:38:15 +02:00
Weijia Wang
3df03f233a ocamlPackages.ocplib-endian: fix for OCaml >= 5 2023-04-19 21:52:23 +02:00
Vincent Laporte
9c16cf9005 ocamlPackages.ocplib-endian: disable for OCaml ≤ 4.02 2022-03-28 21:01:41 +02:00
R. Ryantm
4f7b4fd2be ocamlPackages.ocplib-endian: 1.1 -> 1.2 2022-03-21 06:02:20 +00:00
Felix Buehler
fa8d1b35aa ocamlPackages.ocplib-endian: switch to fetchFromGitHub 2021-11-25 12:37:40 +01:00
Antonio Nuno Monteiro
efd2a1bb8d ocamlPackages: fix some packages for cross-compilation 2021-11-07 22:10:02 -08:00
superherointj
cb43168919 ocamlPackages.ocplib-endian: 1.0 -> 1.1 2021-06-09 17:08:39 +02:00
sternenseemann
4e42cac49d ocamlPackages: stdenv.lib → lib
This change was produced by searching for remaining occurrences of
stdenv.lib and replacing them manually.

Reference #108938.
2021-01-12 16:33:18 +01:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Vincent Laporte
66b63d2f5a ocamlPackages.ocplib-endian: 0.8 -> 1.0 2017-10-26 00:38:55 +00:00
Vincent Laporte
4168706d4f OCaml modules: make explicit some dependencies to ocamlbuild 2016-10-09 11:55:19 +02:00
Nicolas B. Pierron
72c6f8a140 Ensure that we can evaluate the platform attribute of ocaml packages. 2016-03-13 19:08:26 +00:00
Vincent Laporte
49114dec1f Adds ocaml-ocplib-endian
This OCaml library provides optimised functions to read and write
int16/32/64 from strings, bytes and bigarrays, based on primitives added
in version 4.01.

Homepage: https://github.com/OCamlPro/ocplib-endian
2015-02-20 11:37:32 +01:00