Commit Graph

29 Commits

Author SHA1 Message Date
Vincent Laporte
a1354317d7
ocamlPackages.uunf: 15.1.0 → 16.0.0 2024-09-30 19:12:48 +02: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
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
Vincent Laporte
cec13baa2d
ocamlPackages.uunf: 15.0.0 → 15.1.0 2024-01-05 06:49:37 +01:00
Vincent Laporte
e2420ef939 ocamlPackages.uunf: 14.0.0 → 15.0.0 2022-09-27 06:52:26 +02:00
Malo Bourgon
b1de4bf60f ocamlPackages: add meta.mainProgram to many packages 2022-05-11 09:02:37 +02:00
Anders Kaseorg
6920d8ca42 treewide: Simplify negated uses of versionAtLeast, versionOlder
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-04-25 13:35:24 -07: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
Weijia Wang
e465dd55ec ocamlPackages.uunf: fix aarch64-linux build 2022-01-06 07:39:55 +01:00
Vincent Laporte
307a7c38cc ocamlPackages.uunf: 13.0.0 → 14.0.0 2021-10-13 07:23:14 +02:00
sternenseemann
7b63df2fde ocaml-ng.ocamlPackages_4_08.uunf: mark as broken on aarch64
Fails to build consistently on aarch64 for unknown reasons, probably a
compiler bug as OCaml 4.12 seems to work.
2021-08-31 21:15:10 +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
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
f3a1a087e8 ocamlPackages.uunf: re-generate source from the Unicode Character Database 2020-08-21 09:08:33 +02:00
Daniël de Kok
4c54e6ab5f ocamlPackages.uunf: 12.0.0 -> 13.0.0 2020-08-11 10:47:45 +02:00
Vincent Laporte
e57fdf508a ocamlPackages.uunf: 11.0.0 → 12.0.0 2020-02-14 07:31:17 +01:00
volth
7b8fb5c06c treewide: remove redundant quotes 2019-09-08 23:38:31 +00: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
Théo Zimmermann
208aedb971 ocamlPackages.*: remove unnecessary unpackCmd 2018-11-12 17:25:18 +00:00
Vincent Laporte
d4bf592bbd
ocamlPackages.uunf: mark as broken on AArch64 2018-07-31 12:51:36 +00:00
Vincent Laporte
0364a581f2
ocamlPackages.uunf: 10.0.0 -> 11.0.0 2018-07-30 06:39:05 +00:00
Vincent Laporte
5e4edcc4ec
ocamlPackages.topkg: refactoring 2017-12-14 07:36:29 +00:00
Vincent Laporte
4a60c51f5d ocamlPackages.uunf: 2.0.0 -> 10.0.0 2017-06-29 16:31:35 +00:00
Vincent Laporte
8990a6c116 ocamlPackages.uunf: 0.9.3 -> 2.0.0 2017-01-13 06:38:07 +00: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
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
64c6d0117d Adds OCaml libraries: uucd, uunf, uutf and xmlm
Four OCaml libraries contributed by Daniel Bünzli for unicode and xml
processing.

 -  xmlm: Streaming XML codec for OCaml
 -  uutf: Non-blocking streaming Unicode codec for OCaml
 -  uunf: Unicode text normalization for OCaml
 -  uucd: Unicode character database decoder for Ocaml

Homepage: http://erratique.ch/software
2014-07-16 10:05:53 +02:00