88 Commits

Author SHA1 Message Date
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
Ryan Omasta fb14bff941 zulu{8,11,17,21,24,25}: update 2026-05-14 18:19:07 -06:00
Miguel Villafuerte 27c7ddbb8c zulu17: 17.0.12 -> 17.0.18 2026-03-17 15:48:46 +01:00
quantenzitrone 7d8132a92c treewide: remove references to the xorg namespace in pkgs (automated)
this creates some eval errors that will be fixed in the next commit

done with the following script:

```fish
\#!/usr/bin/env fish

set packagesjson (nix eval --impure --json --expr '
let
  lib = import ./lib;
in
import pkgs/servers/x11/xorg/default.nix (lib.mapAttrs (
  name: _:
  if name == "lib" then
    lib
  else if name == "config" then
    { allowAliases = false; }
  else
    name
) (__functionArgs (import pkgs/servers/x11/xorg/default.nix))) { }
' | jq)

set one (grep '^    [A-Za-z0-9_-]*$' pkgs/servers/x11/xorg/default.nix | string trim | string replace -r '$' Z | sort | string sub -e -1)
set two (grep '^  [A-Za-z0-9_-]* = [A-Za-z0-9_-]*;$' pkgs/servers/x11/xorg/default.nix | cut -d= -f1 | string trim | string replace -r '$' Z | sort | string sub -e -1)

for arg in $one $two
    set oname $arg
    set nname (echo $packagesjson | jq -r .$oname)

    if test $nname = null
        echo (set_color red)warn:(set_color normal) unknown package xorg.$oname >&2
        continue
    end

    echo $oname "->" $nname

    # replace basic xorg.$name references
    for file in (rg -F "xorg.$oname" --files-with-matches pkgs)
        # special cases
        sd -F "$oname = xorg.$oname;" "$nname = $nname;" $file

        # replace
        sd -F "xorg.$oname" "$nname" $file

        # fixup function arguments

        # prevent duplicate function args
        if grep -E " ($oname|$nname),\$" $file >/dev/null
            continue
        end

        if grep 'xorg\..' $file >/dev/null # case1: there is more so we can't just remove the function arg

            if grep ' xorg,$' $file >/dev/null
                sd ' xorg,$' " xorg,
                $nname," $file

            else if grep ' xorg ? .*,$' $file >/dev/null
                sd 'xorg( ? .*),$' "xorg\$1,
                $nname," $file

            else
                sd -F 'xorg,' "$nname,
                xorg," $file
            end

        else # case there is no more xorg..* so we can just replace the function arg
            sd 'xorg(| ? .*),.*$' "$nname," $file
        end
    end
end

nix fmt
```
2026-01-25 22:28:09 +01:00
Gutyina Gergő 550d60aa83 zulu24: drop 2025-11-14 22:06:19 +01:00
Gutyina Gergő cd32dbcac1 zulu23: drop 2025-11-14 22:05:29 +01:00
NAHO c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
Sean Gilligan 3c56e3f908 zulu25: init at 25.0.0
Add zulu25, currently the latest version seen using the API at:
https://api.azul.com/metadata/v1/zulu/packages
2025-09-16 10:25:44 -07:00
Weijia Wang e4ee1a96fa zulu21: 21.0.4 -> 21.0.8 (#435705) 2025-08-24 01:23:10 +02:00
Sean Gilligan ffbbb86871 zulu21: 21.0.4 -> 21.0.8 2025-08-22 10:26:49 -07:00
Morgan Jones 33ce2b0efa zulu24: 24.0.1 -> 24.0.2 (#425621) 2025-08-13 04:56:54 +00:00
Sean Gilligan 78c5476c26 zulu24: 24.0.1 -> 24.0.2
Update zulu24 to 24.0.2, currently the latest version seen
using the API at: https://api.azul.com/metadata/v1/zulu/packages
2025-08-02 12:49:22 -07:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Sean Gilligan 6a13f90e88 zulu24: 24.0.0 -> 24.0.1
Update zulu24 to 24.0.1, currently the latest version seen
using the API at: https://api.azul.com/metadata/v1/zulu/packages
2025-07-04 08:52:12 -07:00
Sean Gilligan 93cc932ee6 zulu: Fix passthru.tests
* Eliminate duplicate passthru definition by moving "tests.version"
* Only compare major version (because the ".0.0" can be truncated
* Special case major version 8 to "1.8" for the comparison
2025-07-02 17:08:10 -07:00
Sean Gilligan 9ded46560d Use pass thru.tests.version not custom installCheckPhase script
Co-authored-by: Tom van Dijk <18gatenmaker6@gmail.com>
2025-07-02 14:40:39 -07:00
Sean Gilligan 02f7ac63c0 zulu: add installCheckPhase
This basic check just launches `java -version` and makes sure
it returns some expected output.
2025-07-02 06:41:47 -07:00
Tom van Dijk cd2ccdd6aa zulu24: init at 24.0.0 2025-05-05 11:40:47 +02:00
Fernando Rodrigues 05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
K900 7a14f3c857 zulu: fix man path on Darwin 2025-04-08 17:14:22 +03:00
Sam 76e6a5cce4 treewide: produce darwin JDK bundles at a consistent path 2025-03-14 19:15:11 -07:00
Sam 1c0e0489bf treewide: set bundle attribute on all darwin JDKs 2025-03-14 19:04:00 -07: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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev 57b193d8dd
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +01:00
Tomo c04d7170e0 team-list: establish java team
As discussed in #jdk:nixos.org on Matrix, the maintainers of the
Java ecosystem in Nixpkgs feel that a team for Java would be helpful.
2024-11-09 18:26:59 +00:00
Emily 82fc758e95 zulu: don’t depend on OpenJDK’s meta.nix
This is about to go away.
2024-10-23 16:42:34 +01:00
Emily 35cc1474ef zulu22: drop
Actually, nobody even got around to making an alias for this one…
2024-09-26 16:46:04 +01:00
Emily 309cfa50b6 zulu23: init at 23.0.0 2024-09-26 11:58:47 +01:00
Emily c12e8ac25f zulu21: 21.0.2 -> 21.0.4 2024-09-26 11:58:47 +01:00
Emily 3afd5ff68b zulu17: 17.0.10 -> 17.0.12 2024-09-26 11:58:47 +01:00
Emily 72f2e946d7 zulu11: 11.0.22 -> 11.0.24 2024-09-26 11:58:47 +01:00
Emily 44cdf2fe1c zulu8: 8.0.{392,402} -> 8.0.422 2024-09-26 11:58:47 +01: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
Emily 43fe9d2bbc {javaPackages.compiler.openjdk18,corretto19,open{jdk,jfx}{19,20}*}: drop
These have all been end‐of‐life for more than 10 months.
2024-08-01 13:29:26 +01:00
Joseph Stahl 23835bcff7 zulu22: fix javafx hashes (#311800) 2024-05-15 15:09:28 +02:00
Weijia Wang 56ed765f9c Merge pull request #295440 from jlesquembre/jl/jdk22
openjdk22: init at 22+36
2024-03-25 16:16:48 +01:00
José Luis Lafuente d7c54882e6 openjdk22: init at 22+36 2024-03-25 14:41:55 +01:00
Weijia Wang 111dd2ed97 openjdk16: make linux-only 2024-03-11 00:42:42 +01:00
Weijia Wang b7869ed9a0 zulu: fix build with javafx on linux 2024-03-08 09:35:46 +01:00
Weijia Wang 41e8ce2fb1 Merge pull request #287214 from wegank/zulu-11-bump
zulu11: 11.0.20 -> 11.0.22
2024-02-09 18:52:34 +01:00
Weijia Wang 4982252838 zulu8: 8.0.382 -> 8.0.402 2024-02-08 13:00:54 +01:00
Weijia Wang 5f951ba910 zulu11: 11.0.20 -> 11.0.22 2024-02-08 11:15:35 +01:00
Weijia Wang 86a5d2482e Merge pull request #286298 from wegank/zulu-17-bump
zulu17: 17.0.8.1 -> 17.0.10
2024-02-05 01:36:59 +01:00
Weijia Wang 330e2607ab zulu17: 17.0.8.1 -> 17.0.10 2024-02-04 15:39:40 +01:00
Weijia Wang 8f4f538203 zulu21: 21.0.0 -> 21.0.2 2024-02-03 22:03:00 +01:00
Weijia Wang 0617025285 zulu: drop version from pname 2023-12-23 03:42:24 +01:00
Weijia Wang f3e89babd4 zulu21: init at 21.0.0 2023-10-08 23:14:52 +02:00
Weijia Wang 473e087523 zulu17: init at 17.0.8.1 2023-10-08 23:14:52 +02:00
Weijia Wang 2e692b3ddb zulu: add darwin support 2023-10-08 17:34:23 +02:00
Rahul Butani 4232f8fdf8 zulu: set meta.sourceProvenance
the Azul Zulu tarballs/zips contain JVM bytecode (class files) and
native code (shared objects)
2023-06-09 20:03:48 -05:00
Nathan Viets b1d7b4b4fb zulu: 11.52.13 -> 11.62.17 and 8.48.0.53 -> 8.68.0.19 2023-01-23 20:00:06 -06:00