Commit Graph

76 Commits

Author SHA1 Message Date
Stefan Frijters
52ad3e180f antlr2: move CXXFLAGS into env for structuredAttrs 2026-02-15 20:05:28 +01:00
Sandro Jäckel
3b1d35a92a antlr: remove unused and none existing input 2026-01-10 12:06:18 +01: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
Sarah Clark
c9697413f7 antlr4: add sarahec as maintainer 2025-10-26 13:04:08 -07:00
Sandro
ecb1b6ebe7 antlr4_8: drop (#451854) 2025-10-20 13:53:17 +00:00
Aaron Jheng
42bc774a30 antlr4_8: drop 2025-10-20 13:21:50 +08:00
Aaron Jheng
8ee65f821a antlr4_11.runtime.cpp: fix build 2025-10-14 14:47:40 +08:00
Aaron Jheng
e6201c941b antlr4_10.runtime.cpp: fix build 2025-10-14 14:47:21 +08:00
Aaron Jheng
50433c5c8f antlr4_9.runtime.cpp: fix build 2025-10-14 14:46:42 +08:00
Pavel Kalugin
ca41e89139 Support darwin in antlr 3.5 2025-07-08 16:22:40 +03:00
Florian Peter
0754435e14 maintainers: update farlion -> workflow
* simplify github handle == name
* update email
* add PGP key
2025-06-13 16:48:32 +01:00
Ihar Hrachyshka
dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00
Gaetan Lepage
760c986db4 antlr4: cleanup 2025-04-02 09:38:49 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Henner Zeller
486f01cdfc antlr4_13: add patch to fix libantlrcpp_INCLUDE_INSTALL_DIR
Fixes #379757
2025-03-18 22:55:35 -07:00
Arne Keller
092ad22f21 antlr4_13: 4.13.0 -> 4.13.2 (#354371) 2024-12-18 21:21:43 +01: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
Wolfgang Walther
a763b9c781 pkgs/development/tools/parsing/antlr: remove unused builder.sh
Oversight in a17311a33e.
2024-11-15 20:10:27 +01:00
Henner Zeller
9c8d7408c8 antlr4_13: 4.13.0 -> 4.13.2 2024-11-07 17:09:20 -08: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
alina sireneva
f0def91683 antlr2: fixed darwin build 2024-05-20 22:57:57 +03:00
Kait Lam
b7736a1666 antlr: symlink jar instead of copying
this also allows for using the jarLocation as a standalone file without pulling in a Java runtime from the wrapper scripts.
2024-03-04 15:26:10 +10:00
Aaron Jheng
adadeffea9 utf8cpp: 3.2.5 -> 4.0.3 2023-12-08 12:20:46 +00:00
Maximilian Bosch
8bc5104a6e treewide: refactor .attrs.sh detection
When specifying the `builder` attribute in `stdenv.mkDerivation`, this
will be effectively transformed into

    builtins.derivation {
      builder = stdenv.shell;
      args = [ "-e" builder ];
    }

This also means that `default-builder.sh` is never sourced and as a
result it's not guaranteed that `$NIX_ATTRS_SH_FILE` is set to a correct
location[1].

Also, we need to source `.attrs.sh` to source `$stdenv`. So, the
following is done now:

* If `$NIX_ATTRS_SH_FILE` points to a correct location, then use it.
  Directly using `.attrs.sh` is problematic for `nix-shell(1)` usage
  (see previous commit for more context), so prefer the environment
  variable if possible.

* Otherwise, if `.attrs.sh` exists, then use it. See [1] for when this
  can happen.

* If neither applies, it can be assumed that `__structuredAttrs` is
  turned off and thus nothing needs to be done.

[1] It's possible that it doesn't exist at all - in case of Nix 2.3 or
    it can point to a wrong location on older Nix versions with a bug in
    `__structuredAttrs`.
2023-10-04 18:36:57 +02:00
Nick Cao
ca9144be02 antlr4_13: init at 4.13.0 2023-09-03 08:54:47 -04:00
Jan Malakhovski
5852f26bdc treewide: noop: refer to src.name or similar in sourceRoot where appropriate, part 1: trivial cases 2023-08-03 16:32:03 +00:00
Nick Cao
9a96b203e3 antlr4: add add antlr4-parse to bin
Reference: 8188dc5388/tool/src/org/antlr/v4/gui/Interpreter.java (L22)
2023-03-13 10:13:56 +08:00
Nick Cao
069d4196eb antlr4_12: init at 4.12.0 2023-03-13 10:10:25 +08:00
Artturin
c01f509e44 treewide: source .attrs in builders
if theres a source $stdenv then this is needed

for structuredAttrs
2022-12-08 21:09:02 +02:00
Weijia Wang
366d3c64f5 antlr2: drop python2 2022-12-03 18:45:31 +01:00
Luna Nova
183b4ff833 antlr4_x.runtime.cpp: fix build error due to sourceRoot missing source prefix
Fixes https://github.com/NixOS/nixpkgs/issues/197985

Patch from @NickCao https://github.com/NixOS/nixpkgs/issues/197985#issuecomment-1292843789
2022-10-27 01:23:32 -04:00
Bryan Tan
83b0d09f1c antlr4: remove redundant settings
- Remove unneeded patch flags
- Move sourceRoot out of postUnpack

This change requires a rebuild.
2022-10-21 22:46:11 -07:00
Bryan Tan
98b114eee2 antlr4: simplify package definitions
This does not require a rebuild.
2022-10-21 22:45:25 -07:00
Bryan Tan
a195a65efe antlr4_10: init 2022-10-18 23:57:45 -07:00
Bryan Tan
35dd06d6e7 antlr4_8, antlr4_9, antlr4_11: refactor definition
This commit refactors the antlr 4.8, 4.9, and 4.11 derivations to use common
code, greatly reducing the amount of code duplication, but at the expense of
slightly increased complexity.
2022-10-13 00:45:50 -07:00
Bryan Tan
36019e6120 antlr4_11: init 2022-10-13 00:38:51 -07:00
Robert Scott
3b6bc4b69c treewide: set sourceProvenance for packages containing downloaded jars
these are the easily identifiable cases and will not be comprehensive
2022-06-04 19:47:57 +01:00
sternenseemann
ddd16ea9f1 antlr4_9: 4.9.2 -> 4.9.3 2022-06-01 10:43:09 +02:00
github-actions[bot]
defe3d1bbd Merge staging-next into staging 2021-11-26 00:02:13 +00:00
Nicolas Dudebout
0b12f0c1c9 antlr4: install CMake config files 2021-11-25 20:35:56 +01:00
sternenseemann
ac1f59665b antlr4_9: init at 4.9.2
* Mostly copied from 4.8.nix

* C++ runtime now requires utfcpp which is solved using an
  ExternalProject in 4.9.2. Since this requires network access, we patch
  it out using a patch picked from antlr4's master.

* Change logs:

  * https://github.com/antlr/antlr4/releases/tag/4.9
  * https://github.com/antlr/antlr4/releases/tag/4.9.1
  * https://github.com/antlr/antlr4/releases/tag/4.9.2
2021-11-23 11:45:00 +01:00
Felix Buehler
345d71ffd0 pkgs/development: rename name to pname&version 2021-11-10 14:03:21 +01:00
Michael Livshin
a2ae19a00d antlr3: make C++ headers compliant with C++20
(by stealing the relevant patch from Fedora)
2021-04-23 18:10:04 +03:00
Ben Siraphob
c522fec274 pkgs/development/tools: stdenv.lib -> lib 2021-01-23 20:30:03 +07:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08: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
Guillaume Bouchard
2de3de4631 antlr: 4.7 -> 4.8 2020-11-04 15:26:29 -08:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Jonathan Ringer
23d3a0269a antlr4: 4.7.1 -> 4.7.2 2019-09-29 03:14:22 -07:00
volth
c814d72b51 treewide: name -> pname 2019-08-17 10:54:38 +00:00