Commit Graph

19 Commits

Author SHA1 Message Date
Guy Chronister
f7a92c49ef ocamlPackages.cfstream: migrate to finalAttrs 2026-01-31 14:37:04 +00: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
3cae63521d ocamlPackages.cfstream: disable for OCaml < 4.08 2024-09-27 21:34:14 +02:00
Dimitrije Radojević
1287f06155 ocamlPackages.janestreet: 0.16 -> 0.17 (#329201) 2024-08-08 21:38:40 +02:00
Vincent Laporte
b37ea8df32 ocamlPackages.janeStreet: remove at 0.11 2024-04-09 11:49:39 +02:00
Dimitrije Radojević
9b4d043ba2 ocamlPackages.janestreet: 0.15 -> 0.16 (#247022) 2023-08-31 07:46:20 +02:00
Vincent Laporte
c81792a457 ocamlPackages.ounit2: disable for OCaml < 4.08 2023-05-15 10:10:36 +02:00
Vincent Laporte
12f5b04c83 ocamlPackages.cfstream: 1.3.1 → 1.3.2 2023-02-11 13:50:06 +01:00
Ulrik Strid
f12b9ea461 buildDunePackage: default to strictDeps = true 2023-02-03 08:59:34 +01:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Ulrik Strid
a13cdfe520 ocamlPackages tree-wide: Move buildInputs that should be nativeBuildInputs
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild.
This makes some closures significantly smaller and makes cross compilation easier
2022-02-24 14:39:27 +01:00
sternenseemann
aad56c947f ocamlPackages: remove redundant stdenv imports 2021-01-12 16:33:18 +01:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Vincent Laporte
1dc15448b4 ocamlPackages.cfstream: use Dune 2 2020-12-18 21:03:56 +01:00
Ben Darwin
29bc26113c ocamlPackages.cfstream: 1.3.0 -> 1.3.1 2020-01-30 17:04:54 -05:00
Ben Darwin
6b8de994a1 ocamlPackages.cfstream: init at 1.3.0 2019-12-06 12:00:44 -05:00