Commit Graph

85 Commits

Author SHA1 Message Date
Vladyslav Pekker
9081ee5584 ammonite: name the scala version in the description
All three variants build a derivation called ammonite-3.0.9, so the
description is what tells them apart in nix search and nix profile list.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:01 -03:00
Vladyslav Pekker
3e7f7b6ecd ammonite: require Java 11 or newer
ammonite.AmmoniteMain is class-file 55, so an older jre failed the install
check with UnsupportedClassVersionError buried in a build log rather than
saying why.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:01 -03:00
Vladyslav Pekker
e55394a12b ammonite: pass the packaged jre to child processes
The repl pinned its own jvm but handed subprocesses whatever the shell
had. makeWrapper is not usable here because the launcher passes itself as
the classpath with -cp "$0", so the exports go ahead of the exec instead,
and the result is checked rather than assumed.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:00 -03:00
Vladyslav Pekker
f94d2111ce ammonite: drop the disableRemoteLogging argument
The sed behind it looks for ammonite.Main', but the 3.x launcher runs
ammonite.AmmoniteMain, so it has matched nothing for some time and the
flag was never added: the default build contains no --no-remote-logging.
Upstream removed the feature as well, and answers the flag with "Option
--no-remote-logging is deprecated (remote logging has been removed)".

So the argument only ever chose between two identical launchers, except
that passing it false also skipped the shebang.

The built output is unchanged. This does drop the argument from the
.override interface, so `ammonite.override { disableRemoteLogging = false; }`
now fails to evaluate rather than quietly doing nothing; nothing in the
tree passes it.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:00 -03:00
Vladyslav Pekker
9c4338865e ammonite: always give the launcher a shebang
Upstream ships a .bat/.sh polyglot with no interpreter directive, and the
sed adding one sat inside the disableRemoteLogging block, so building with
that argument false produced a launcher execve cannot start: shells retry
it under /bin/sh, but anything calling execve directly gets ENOEXEC.

The default build is byte-identical; only the --no-remote-logging flag
stays conditional.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:00 -03:00
Vladyslav Pekker
adbce88404 ammonite: fill in meta
The launcher carries an appended jar, so sourceProvenance is
binaryBytecode rather than the fromSource default.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:00 -03:00
Vladyslav Pekker
86783af97d ammonite: rework update script
It refreshed ammonite_2_12 and ammonite_2_13 only, so a bump left
ammonite_3_3 - which is what the plain ammonite attribute points at - on
the new version with its old hash. The variants are now one table the
script is generated from, so none can be missed.

It also drove git ls-remote off git@github.com:..., which needs an ssh key
and so could never have run for r-ryantm.

The rest is the shape the other Scala packages use: shellcheck at build
time, a downgrade guard, prose on stderr, package.nix restored if a
refresh fails partway, and the commit feature declared.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:00 -03:00
Vladyslav Pekker
9b95c29631 ammonite: limit platforms to those the jre supports
lib.platforms.all claimed 79 systems for a shell script running a jar.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:00 -03:00
Vladyslav Pekker
8d07bd18ab ammonite: pin the packaged jre
The launcher picks $JAVA_HOME over its own default when set, and only the
default was being patched, so `override { jre = ... }` had no effect in any
shell that exports JAVA_HOME - which is most of them. Ammonite 3 needs
Java 11, so on an older JAVA_HOME it crashed in the launcher instead.

sed rather than substituteInPlace because the launcher carries an appended
jar, and null bytes make substituteInPlace refuse the file. Since sed is
silent when it matches nothing, which is how this went unnoticed, the
result is checked.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:00 -03:00
Vladyslav Pekker
1d6a64346c ammonite: add agilesteel as maintainer
Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:00 -03:00
Thomas Butter
2c5d48c453 ammonite: 3.0.6 -> 3.0.9 2026-04-23 04:42:54 +00:00
Stefan Weigl-Bosker
dede03899b ammonite: 3.0.2 -> 3.0.6 2025-12-19 15:28:47 -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
Wolfgang Walther
3b1e37dce8 maintainers: drop nequissimus
Reacted to 3 out of 375 maintainer pings in the least 180 days.
2025-12-09 21:09:09 +01:00
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Vladyslav Pekker
1131a6cd5b ammonite: 3.0.0-M1 -> 3.0.2 2025-05-07 14:54:14 -03:00
zowoq
bd641be4e9 treewide: remove nixfmt-classic from updateScript 2025-01-19 12:35:18 +10: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
Arnout Engelen
63924a70b1 ammonite: add ammonite for Scala 3.3 2024-06-18 14:29:25 +02:00
Janne Heß
af69be669f treewide: Rename nixfmt to nixfmt-classic (#300468)
* treewide: Rename nixfmt to nixfmt-classic

* Update pkgs/top-level/aliases.nix

Co-authored-by: Silvan Mosberger <github@infinisil.com>

---------

Co-authored-by: Silvan Mosberger <github@infinisil.com>
2024-04-02 20:47:13 +02:00
panda2134
980f694ee1 ammonite: 2.5.3 -> 3.0.0-M1
This update breaks binary compatibility with ammonite 2.5.x.
2024-03-12 03:19:51 -05:00
Shawn8901
a59dda942c treewide: remove global with lib; statements in pkgs/development 2023-01-26 18:31:02 +01:00
Malo Bourgon
16e15fa68f treewide: add meta.mainProgram to many packages 2022-05-04 18:08:19 -07:00
R. RyanTM
e94105fde8 ammonite: 2.5.2 -> 2.5.3 (#168845) 2022-04-22 09:46:36 -04:00
JesusMtnez
37a0d070bc ammonite: 2.5.1 -> 2.5.2 2022-02-02 09:32:52 -05:00
JesusMtnez
89794b91f3 ammonite: 2.5.0 -> 2.5.1 2022-01-13 09:26:49 +01:00
Jonathan Ringer
57c1ae5848 ammonite: fix homepage 2021-12-28 08:49:17 -08:00
JesusMtnez
d859150533 ammonite: 2.4.1 -> 2.5.0 2021-12-26 14:53:29 -08:00
R. Ryantm
ed35f91ec8 ammonite: 2.4.0 -> 2.4.1 2021-11-13 23:19:44 +00:00
flurie
34c058ef85 ammonite: fix build on x86_64-darwin 2021-11-10 20:55:38 -05:00
Mrinal Purohit
9e431da515 ammonite: move nixos test to installCheckPhase 2021-10-30 14:13:42 +05:30
Ben Siraphob
2f94991628 treewide: fix redirected URLs
Using the script in maintainers/scripts/update-redirected-urls.sh
2021-08-01 00:01:50 +07:00
Felix Buehler
02b4d1c91a ammonite: deprecate phases 2021-07-27 14:41:39 +02:00
R. RyanTM
c3173699c7 ammonite: 2.3.8 -> 2.4.0 2021-06-11 19:03:51 -04:00
Ben Siraphob
c522fec274 pkgs/development/tools: stdenv.lib -> lib 2021-01-23 20:30:03 +07:00
Tim Steinbach
34d2819831 ammonite: Fix arguments 2020-11-27 09:58:00 -05:00
JesusMtnez
8f46b51e86 ammonite: 2.2.0 -> 2.3.8 2020-11-27 06:38:46 +01:00
Tim Steinbach
fb396b7ea5 Update pkgs/development/tools/ammonite/default.nix
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2020-11-04 13:26:21 -05:00
Tim Steinbach
7e062659e9 ammonite: Add test reference, update script 2020-11-04 12:57:58 -05:00
Tim Steinbach
96e5d91998 ammonite: Format with nixfmt 2020-10-08 11:00:17 -04:00
uosis
00eedc07f3 ammonite: 2.0.4 -> 2.2.0 2020-08-11 19:32:31 -06:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Fabian Page
1a786820c2 ammonite: updated to version 2.0.4 2020-03-19 11:06:41 -07:00
uosis
18570590e4 ammonite: fix source reference to allow dynamic binding 2020-02-21 02:29:33 -07:00
Louis Bettens
47aefc88c8 ammonite: fix #68151
Upstream doesn't include a shebang line but recommends adding one at
installation time. NixOS users noticed that the command wouldn't exec
when using certain shells.
2019-11-22 10:29:04 +01:00
Tim Steinbach
b0e4d7b9ea ammonite: 1.7.1 -> 1.7.4 2019-10-21 09:14:56 -04:00
volth
1673f3d458 ammonite: add scala-2.13 version 2019-09-21 13:16:30 -04:00
Tim Steinbach
dad77d59cb ammonite: 1.6.9 -> 1.7.1 2019-09-12 08:06:57 -04:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00