307 Commits

Author SHA1 Message Date
Emily 0d745b7d70 graalvmPackages.*: drop x86_64-darwin from update script 2026-07-15 03:58:17 +01: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
Jakub Okoński ae4069a9b5 graalvmPackages: update to 25.0.3 2026-06-16 23:11:51 +02:00
Vladyslav Pekker f884503842 graalvmPackages.graalpy: 25.0.1 -> 25.0.2 2026-03-13 12:18:55 -03:00
Vladyslav Pekker 07f37f7167 graalvmPackages.graalnodejs: 25.0.1 -> 25.0.2 2026-03-13 12:18:46 -03:00
Vladyslav Pekker 9ccf5396d6 graalvmPackages.graaljs: 25.0.1 -> 25.0.2 2026-03-13 12:18:40 -03:00
Vladyslav Pekker 7d976c3646 graalvmPackages.graalvm-ce: 25.0.1 -> 25.0.2 2026-03-13 12:18:33 -03:00
Vladyslav Pekker a76256dfef graalvmPackages: fix update.sh to use renamed attribute
graalvmCEPackages was renamed to graalvmPackages.
2026-03-13 12:18:24 -03:00
Weijia Wang 7be2561a0f graalvmPackages.graalvm-ce: 25.0.0 -> 25.0.1 (#454993) 2026-02-01 21:55:59 +00:00
Weijia Wang 945da923ac graalvmPackages.graalpy: 25.0.0 -> 25.0.1 (#454417) 2026-02-01 21:50:46 +00:00
Weijia Wang b9f1fa7bd9 graalvmPackages.graalnodejs: 24.2.2 -> 25.0.1 (#445906) 2026-02-01 21:49:59 +00:00
Weijia Wang 1c34a62d75 graalvmPackages.graaljs: 24.2.2 -> 25.0.1 (#446143) 2026-02-01 21:49:52 +00:00
quantenzitrone 233631a84f treewide: remove references to the xorg namespace in pkgs (manual)
this was done manually, fixing the eval and any remaining stuff of the previous commit

together with the previous commit this shouldn't create any rebuilds
2026-01-25 22:28:14 +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
Sandro f726cfaa10 graalvm-ce: Do not move the JDK release file to share/ (#468293) 2026-01-10 21:12:04 +00: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
eihqnh d8959c385c graalvm-ce: do not move the JDK release file to share/ 2025-12-06 22:38:22 +08:00
Rowenna Emma 006ab01d64 buildGraalvm: fix native-image on darwin
On Darwin, it is apparently Oracle's intention to be hostile towards
builds of Clang which are not by Apple.

see https://github.com/oracle/graal/issues/12041

If you want native-image to both work on Darwin and use the nix-provided CC
then you must pass it the flags to disable toolchain checking entirely.
Since the flags are mandatory for functionality,
they should be part of the wrapper.
2025-11-10 20:52:47 -08:00
Rowenna Emma 727a55225f buildGraalvm: refactor use of --add-flags
Simplifies the flag-handling code by using only one --add-flags,
rather than treating --add-flags like --add-flag by mapping it onto every flag
2025-11-10 20:52:47 -08:00
Rowenna Emma 483a5e7a0e buildGraalvm: remove unset vars
This patch removes remaining uses of unset bash var $extraNativeImageArgs
which commit bc1bc1aa3 forgot to remove when deleting the var.
2025-11-10 20:52:47 -08:00
winston 68d5328122 graalvm-oracle_25: bump hashes, use archive URL 2025-10-25 13:44:51 +02:00
R. Ryantm f34949c208 graalvmPackages.graaljs: 24.2.2 -> 25.0.1 2025-10-24 21:34:31 +00:00
R. Ryantm f5fdef1119 graalvmPackages.graalnodejs: 24.2.2 -> 25.0.1 2025-10-24 10:40:58 +00:00
R. Ryantm 9bd38dc947 graalvmPackages.graalvm-ce: 25.0.0 -> 25.0.1 2025-10-23 18:39:01 +00:00
R. Ryantm 91d6bbeb76 graalvmPackages.graalpy: 25.0.0 -> 25.0.1 2025-10-22 01:48:01 +00: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
Wolfgang Walther 2eb9ff151b graalvmPackages.truffleruby: 24.2.2 -> 25.0.0 (#444144) 2025-09-23 08:18:35 +00:00
R. Ryantm 8f1089ed2c graalvmPackages.graalpy: 24.2.2 -> 25.0.0 2025-09-20 10:56:15 +00:00
R. Ryantm 32990702fa graalvmPackages.truffleruby: 24.2.2 -> 25.0.0 2025-09-18 21:46:10 +00:00
Sean Gilligan 96fc08be0c graalvm-ce: 24.0.2 → 25.0.0
Update to 25.0.0 LTS using `graalvm/community-edition/update.sh`
2025-09-18 12:14:37 -07:00
Sean Gilligan 94b261c3fb graalvm-ce-musl: only test --static on x86_64-linux
--libc=musl --static is not support by GraalVM native-image on aarch64
so add conditional to only test this option on x86_64
2025-09-18 12:10:28 -07:00
Sean Gilligan b4058ee062 graalvm-oracle_24: drop
GraalVM 24 is EOL and has been replaced by GraalVM 25.
2025-09-17 11:13:55 -07:00
Sean Gilligan e88bed7fa1 graalvm-oracle_25: set as default for graalvm-oracle
This makes graalvm-oracle_25 the default for graalvm-oracle.
2025-09-16 09:45:09 -07:00
Sean Gilligan c55440b17b graalvm-oracle_25: 25-ea-36 -> 25
Update graalvm-oracle_25-ea-36 to graalvm-oracle_25 (General Availability),
currently the latest version available at:
https://www.graalvm.org/downloads/
2025-09-16 08:34:38 -07:00
Sean Gilligan 555884bb0b graalvm-oracle_25-ea: 25-ea-35 -> 25-ea-36
Update graalvm-oracle_25-ea-35 to 25-ea-36,
currently the latest version available at:
https://github.com/graalvm/oracle-graalvm-ea-builds/releases

This is likely the final release candidate for 25.
2025-09-03 20:40:12 -07:00
Sean Gilligan 9d5a4f6506 graalvm-oracle_25-ea: 25-ea-34 -> 25-ea-35
Update graalvm-oracle_25-ea-34 to 25-ea-35,
currently the latest version available at:
https://github.com/graalvm/oracle-graalvm-ea-builds/releases
2025-08-31 10:57:45 -07:00
jopejoe1 61d0373a40 lib.licenses: replace classpath license with exception
The GPL-2.0-with-classpath-exception is deprecated in spdx and the exception Classpath-exception-2.0 should be used instead.
Other Classpath license hace also benn replaced with it.
2025-08-31 16:19:22 +02:00
Sean Gilligan ccc8263544 graalvm-oracle_23: drop
GraalVM 23 is EOL and has been replaced by GraalVM 24.
2025-08-22 09:05:09 -07:00
Sandro 54e82f8ac8 graalvm-oracle_24: init at 24.0.2 (#423224) 2025-08-22 15:16:15 +02:00
Sean Gilligan 792510f0c7 graalvm-oracle_25-ea: 25-ea-33 -> 25-ea-34 2025-08-21 11:39:54 -07:00
Sean Gilligan f3151796cc graalvm-oracle_25-ea: 25-ea-32 -> 25-ea-33
Update graalvm-oracle_25-ea to 25-ea-33, currently the latest version
available at: https://github.com/graalvm/oracle-graalvm-ea-builds/releases
2025-08-14 08:56:55 -07:00
Jakub Okoński 7011644443 graalvm-oracle_24: init at 24.0.2 2025-08-14 15:03:31 +02:00
Sean Gilligan b586b8f6e9 graalvm-oracle_25-ea: init at 25-ea-32 2025-08-12 23:32:29 -07:00
Weijia Wang 20089a8982 graalvmPackages.graalnodejs: 24.2.1 -> 24.2.2 (#428826) 2025-08-04 11:43:43 -06:00
Weijia Wang b99b1e097b graalvmPackages.graalpy: 24.2.1 -> 24.2.2 (#425584) 2025-08-04 11:42:56 -06:00
Weijia Wang 1c866ee2fc graalvmPackages.truffleruby: 24.2.1 -> 24.2.2 (#427627) 2025-08-04 11:28:35 -06:00
Weijia Wang e8bbdfd4d6 graalvmPackages.graaljs: 24.2.1 -> 24.2.2 (#426779) 2025-08-04 10:41:03 -06:00
Weijia Wang ddec17e4a7 graalvmPackages.graalvm-ce: 24.0.1 -> 24.0.2 (#426304) 2025-08-04 02:58:13 -06:00
R. Ryantm e5a1a745d4 graalvmPackages.graalnodejs: 24.2.1 -> 24.2.2 2025-07-27 11:58:35 +00:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00