Commit Graph

27 Commits

Author SHA1 Message Date
Vladyslav Pekker
142941fdcf mill: require Java 17 or newer
The daemon mill starts is Java 17 bytecode. Upstream saying it "supports
every JVM version from 11 onward" is about the JVMs a build may target,
not the one mill itself runs on.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:06 -03:00
Vladyslav Pekker
867a1a78a3 mill: pin JAVA_HOME rather than defaulting it
--set-default left an ambient JAVA_HOME in charge, so overriding jre had
no effect on the daemon mill starts. Also switches to jre.home, which is
the attribute meant for this, and to lib.makeBinPath for the PATH entry.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:06 -03:00
Vladyslav Pekker
cb59e51d99 mill: 1.1.7 -> 1.1.8
Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:06 -03:00
Vladyslav Pekker
bb281ebb7c mill: rework update script
It called nix-prefetch-url and `nix hash convert` without nix on its
pinned PATH, so it only worked through the ambient PATH it appended.

It also rewrote package.nix once per platform with no way back, so a
failure on the second or third left the file half updated. It now restores
the file unless the whole run succeeds, refuses to downgrade, passes
--fail to curl, honours $UPDATE_NIX_ATTR_PATH and supports the `commit`
updateScript feature. writeShellApplication runs shellcheck over it at
build time.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:06 -03:00
Vladyslav Pekker
80ecba1f7f mill: collapse the platform tables
The artifact suffix, the hash and meta.platforms were three lists of the
same three systems that had to agree by hand; the update script iterated
meta.platforms and threw if a system was missing from the suffix table.
They are now one table, with meta.platforms derived from it.

The legacy sha256 attribute held SRI values, so it becomes hash.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:06 -03:00
Vladyslav Pekker
627407680b mill: add changelog to meta
Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:05 -03:00
Vladyslav Pekker
c7669ff9c0 mill: fix preferLocalBuild typo
It was spelled preferLocal, which Nix does not recognise, so it reached
the derivation as an inert environment variable and the comment above it
never took effect.

Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:05 -03:00
Vladyslav Pekker
71f437dc50 mill: add agilesteel as maintainer
Assisted-by: Claude Code (Claude Opus 5)
2026-08-14 18:01:05 -03:00
JesusMtnez
b62e33c1b0 mill: fix updateScript to skip pre-release versions
Maven's <release>/<latest> fields in maven-metadata.xml just reflect
whatever was published most recently, which for mill includes
milestone builds (-M1, -M2, ...) and per-commit dev builds
(-N-<sha>). This caused the updateScript to pick those up instead of
the latest stable release.

Filter the full <version> list down to plain X.Y.Z semver strings and
pick the highest via `sort -V` instead.
2026-08-08 15:46:49 +02:00
JesusMtnez
8a8fedb6c3 mill: 1.1.2 -> 1.1.7
https://github.com/com-lihaoyi/mill/releases/tag/1.1.7
2026-07-20 07:59:48 +02:00
Emily
fdb820602b treewide: drop simple x86_64-darwin mentions
To reproduce:

    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: nix-x86_64-darwin
          language: nix
          rule:
            any:
              - pattern: "\"x86_64-darwin\""
                kind: list_expression > string_expression
              - pattern:
                  context: "{ \"x86_64-darwin\" = $EXPR; }"
                  selector: binding
              - pattern:
                  context: "{ x86_64-darwin = $EXPR; }"
                  selector: binding
          fix:
            template: ""
        ' pkgs
    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: json-first-x86_64-darwin
          language: json
          rule:
            kind: object > pair:nth-child(1)
            has:
              pattern: "\"x86_64-darwin\""
              field: key
          fix:
            template: ""
            expandEnd: { regex: "," }
        ' pkgs
    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: json-x86_64-darwin
          language: json
          rule:
            kind: object > pair
            has:
              pattern: "\"x86_64-darwin\""
              field: key
          fix:
            template: ""
            expandStart: { regex: "," }
        ' pkgs
    $ git restore pkgs/by-name/om/omnix/package.nix
    $ git diff --name-only -z \
        | nix shell nixpkgs/3b32825de172d0bc85664f495edb096b10862524#gnused \
            -c xargs -0 sed -i '/^$/N; /^\n\? \+$/d'
    $ treefmt
2026-07-15 03:58:16 +01:00
R. Ryantm
ed9a9d36e4 mill: 1.1.1 -> 1.1.2 2026-02-10 22:39:56 +00:00
emilycares
1ec0247bc4 mill: 1.0.6 -> 1.1.1
1. In the latest relase ./mill init download URL was fixed.
2. Noticed it had no update script. Added it
 2.1 Moved hashes from source.json to package.nix

https://github.com/com-lihaoyi/mill/releases/tag/1.1.1
2026-02-07 13:51:35 +01:00
Wolfgang Walther
ce8e3eb73b maintainers: drop scalavision
Inactive since 2024.
2025-12-02 16:34:32 +01:00
Pui Yong Qing
d30882ec23 mill: 1.0.4 -> 1.0.6 2025-10-29 20:20:55 +08:00
skykanin
914a3a6a10 mill: 0.12.14 -> 1.0.4 2025-09-12 22:23:22 +02:00
JesusMtnez
4907750a17 mill: 0.12.11 -> 0.12.14 2025-05-23 07:11:10 +02:00
R. Ryantm
2d64111765 mill: 0.12.10 -> 0.12.11 2025-05-11 00:46:19 +00:00
R. Ryantm
e2fa2553f1 mill: 0.12.9 -> 0.12.10 2025-04-02 01:07:06 +00:00
R. Ryantm
ccf54780b9 mill: 0.12.8 -> 0.12.9 2025-03-19 12:50:12 +00:00
Qiming Chu
b4adb3da9b mill: 0.12.5 -> 0.12.8
Signed-off-by: Qiming Chu <cchuqiming@gmail.com>
2025-03-07 20:17:01 +08:00
R. Ryantm
4fd0ac47d1 mill: 0.12.4 -> 0.12.5 2025-01-02 13:42:16 +00:00
R. Ryantm
2e33d743b5 mill: 0.12.3 -> 0.12.4 2024-12-18 02:58:39 +00: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
unlsycn
157c607825 mill: 0.12.2 -> 0.12.3
Signed-off-by: unlsycn <unlsycn@unlsycn.com>
2024-11-27 04:40:56 +00:00
unlsycn
05567a2643 mill: 0.12.0 -> 0.12.2
Signed-off-by: unlsycn <unlsycn@unlsycn.com>
2024-11-11 12:57:04 +00:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00