Commit Graph

40 Commits

Author SHA1 Message Date
Ihar Hrachyshka
cca3b04b44 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 19:01:23 +01:00
jopejoe1
1e1cef625b ocamlPackages: swap throws to meta.broken
throws no longer work with the current ci we have in nixpkgs
2025-10-18 22:23:06 +02:00
Silvan Mosberger
667d42c00d 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 57b193d8dd
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +01:00
Sigmanificient
3e1227a1af pkgs/development/ocaml-modules: remove unused arguments 2024-07-16 03:54:01 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
R. Ryantm
0ab758bc44 ocamlPackages.cmdliner: 1.2.0 -> 1.3.0 2024-06-02 00:59:40 +00:00
R. Ryantm
7d1ed7a788 ocamlPackages.cmdliner: 1.1.1 -> 1.2.0 2023-07-25 03:24:42 +00:00
Vincent Laporte
a06e854f23 ocamlPackages.cmdliner_1_1: disable for OCaml < 4.08 2022-08-18 08:46:13 +02:00
Jules Aguillon
bcbbbea82e ocamlPackages.cmdliner_1_0: Update license
License changed on version 1.0.0 from bsd3 to isc.
2022-05-22 20:58:24 +02:00
Jules Aguillon
5a61d18997 ocamlPackages.cmdliner_1_1: init at 1.1.1
Add the latest version of cmdliner. This release broke many packages and
have more constraining dependencies so the previous version cannot be
removed from nixpkgs for now.

The previous version is still available as ocamlPackages.cmdliner_1_0
and ocamlPackages.cmdliner points to it for now.
2022-05-22 20:58:20 +02:00
Malo Bourgon
bca4ad0487 ocamlPackages: inherit ocaml.meta.platforms 2022-05-11 09:02:37 +02:00
Aaron Zeng
05fe9b54a5 ocamlPackages.cmdliner: Use the upstream Makefile build rules (#166150)
* ocamlPackages.cmdliner: remove at 1.0.2

Remove a legacy version.

* ocamlPackages.cmdliner: use the upstream Makefile build rules

According to
https://github.com/dbuenzli/cmdliner/pull/147#issuecomment-1081168328,
the topkg build is deprecated.  Switch to the new recommended build instructions.
2022-04-07 20:37:09 +02: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
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
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
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Yorick van Pelt
4550405ac9 ocaml-modules: replace buildInputs with nativeBuildInputs where appropriate
The default has been to use buildInputs for build dependencies.
This doesn't work when cross-compiling.
2019-11-11 11:10:14 +03:00
R. RyanTM
f2d8928923 ocamlPackages.cmdliner: 1.0.3 -> 1.0.4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/ocaml4.06.1-cmdliner/versions
2019-08-04 19:42:10 -07:00
Daniel Schaefer
bac4d95aa2 treewide: Change URLs to HTTPS
Lots of URLs were HTTP redirect to HTTPS. Changed those and checked them
if there's actual content. Inspired by
https://github.com/NixOS/nixpkgs/issues/60004
2019-04-22 10:19:54 +02:00
Matthew Bauer
290a5d916e treewide: update homepages to https where available
Based on "problems" from repology:

https://repology.org/repository/nix_unstable/problems

Mostly simple changes to reflect redirects.
2019-04-15 10:10:05 -04:00
Vincent Laporte
522148ba4e ocamlPackages.cmdliner: restore version 1.0.2 for OCaml ≤ 4.02 2019-01-09 16:37:39 +00:00
R. RyanTM
20f691ddee ocamlPackages.cmdliner: 1.0.2 -> 1.0.3
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/ocaml-cmdliner/versions
2018-12-14 23:27:29 -08:00
Théo Zimmermann
208aedb971 ocamlPackages.*: remove unnecessary unpackCmd 2018-11-12 17:25:18 +00:00
Vincent Laporte
c647ca8180 ocamlPackages.cmdliner: remove at 0.9.8 2018-06-26 20:14:57 +00:00
Vincent Laporte
a4fa4c45cc ocamlPackages.cmdliner_0_9: use opaline 2018-06-06 07:14:29 +00:00
Vincent Laporte
5e4edcc4ec ocamlPackages.topkg: refactoring 2017-12-14 07:36:29 +00:00
Vincent Laporte
ebd5c936fd ocamlPackages.cmdliner: make version 1.0 the default 2017-09-08 04:09:11 +00:00
Vincent Laporte
e93d92d391 ocamlPackages.cmdliner: 1.0.0 -> 1.0.2 2017-09-08 03:00:27 +00:00
romildo
61b8fddf52 cmdliner: 1.0.0 -> 0.9.8
Downgrade to version 0.9.8 because the new version 1.0.0 breaks API and
some pacakges do not yet compile with it.
2017-05-31 17:01:29 -03:00
romildo
32e12ff4ed cmdliner_1_0: init at 1.0.0
Version 1.0 breaks API and some packages does currently not compile
with it. So it is added as a new package.
2017-05-31 17:01:29 -03:00
romildo
56a4aaf4df cmdliner: 0.9.8 -> 1.0.0 2017-05-28 17:38:23 -03:00
Vincent Laporte
4168706d4f OCaml modules: make explicit some dependencies to ocamlbuild 2016-10-09 11:55:19 +02:00
Kirill Boltaev
3e646865f4 treewide: use ocaml.version (#19192) 2016-10-05 09:32:30 +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
0da6fb5fa5 ocaml-cmdliner: 0.9.7 -> 0.9.8 2015-10-14 19:27:10 +02:00
Vincent Laporte
5cd15f8cc0 ocaml-cmdliner: update from 0.9.6 to 0.9.7 2015-02-11 17:51:38 +01:00
Vincent Laporte
66e2f50416 cmdliner requires OCaml ≥ 4 2015-01-28 12:03:25 +01:00
Vincent Laporte
f9432af1e2 ocaml-cmdliner: update from 0.9.5 to 0.9.6 2014-11-18 14:34:08 +00:00
Vincent Laporte
857c13e1af Minor modifications of some ocaml packages:
adds myself as a maintainer
adds assertions to have evaluation errors rather than build errors
moves opam out of ocamlPackages, as it does not provide a library
2014-09-21 11:02:55 +01:00
Vincent Laporte
23b9029455 Adds ocaml-cmdliner
Cmdliner is an OCaml module for the declarative definition of command
line interfaces.

Homepage: http://erratique.ch/software/cmdliner
2014-08-29 11:46:39 +02:00