Commit Graph

122 Commits

Author SHA1 Message Date
Thiago Kenji Okada
023bdebe77 buildGraalvm: move files in $out to $out/share
Like $out/LICENSE.txt since this is generally a bad idea and can cause
conflicts with other packages.

Fixes #345907.
2024-10-03 14:43:14 +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
R. Ryantm
e00344c04a graalvm-ce: 22.0.2 -> 23.0.0 2024-09-21 14:52:16 +00:00
R. Ryantm
974c3a1956 graalvm-ce: 22.0.1 -> 22.0.2 2024-07-24 07:19:42 +00:00
Thiago Kenji Okada
2ba084c79b graalvmCEPackages.graaljs: 23.1.0 -> 24.0.1 2024-07-15 15:29:24 +01:00
Thiago Kenji Okada
3cb8078b3b graalvmCEPackages.graalnodejs: 23.1.0 -> 24.0.1 2024-07-15 15:27:37 +01:00
Thiago Kenji Okada
131f822e17 graalvm-ce: 22.0.0 -> 22.0.1 2024-07-15 15:20:53 +01:00
R. Ryantm
86bc041077 graalvmCEPackages.truffleruby: 24.0.0 -> 24.0.1 2024-04-20 05:13:47 +00:00
R. Ryantm
4ff0c0ad57 graalvmCEPackages.graalpy: 24.0.0 -> 24.0.1 2024-04-18 20:38:37 +00:00
Thiago Kenji Okada
e1a7ec5583 graalvm-ce: make it a scope 2024-03-26 15:48:02 +00:00
Thiago Kenji Okada
2fea245936 buildGraalvm: use macOS SDK 11
Fix x86_64-darwin builds.
2024-03-26 14:45:17 +00:00
Thiago Kenji Okada
a98e9f4892 buildGraalvm: fix native-image warnings in installCheckPhase 2024-03-26 14:12:20 +00:00
Thiago Kenji Okada
38d8d0e7ea
Merge pull request #297436 from r-ryantm/auto-update/graalvmCEPackages.graalpy
graalvmCEPackages.graalpy: 23.1.2 -> 24.0.0
2024-03-21 20:58:27 +00:00
Thiago Kenji Okada
3373acf729
Merge pull request #297515 from r-ryantm/auto-update/graalvmCEPackages.truffleruby
graalvmCEPackages.truffleruby: 23.1.2 -> 24.0.0
2024-03-21 20:58:12 +00:00
R. Ryantm
ad0a373abd graalvmCEPackages.truffleruby: 23.1.2 -> 24.0.0 2024-03-20 18:53:54 +00:00
R. Ryantm
3dcd508956 graalvmCEPackages.graalpy: 23.1.2 -> 24.0.0 2024-03-20 11:19:11 +00:00
R. Ryantm
ac4ed5dd63 graalvm-ce: 21.0.2 -> 22.0.0 2024-03-19 19:29:14 +00:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
R. Ryantm
27ec1c9b87 graalvm-ce: 21.0.1 -> 21.0.2 2024-01-23 03:31:30 +00:00
R. Ryantm
e87c2dd226 graalvmCEPackages.truffleruby: 23.1.1 -> 23.1.2 2024-01-19 18:18:22 +00:00
R. Ryantm
08e312ac19 graalvmCEPackages.graalpy: 23.1.1 -> 23.1.2 2024-01-18 17:22:26 +00:00
Thiago Kenji Okada
a92e6068b4 buildGraalvm: use NATIVE_IMAGE_DEPRECATED_BUILDER_SANITATION instead of CC wrapper
Instead of using a hacky CC wrapper to re-inject the environment
variables needed to build, we set the
NATIVE_IMAGE_DEPRECATED_BUILDER_SANITATION=true that is in 21.0.0
release changelog:
489611a304/substratevm/CHANGELOG.md (L48)

This is deprecated behavior for now, and will be removed in future, but
this will allow us more time until we figure a proper solution.

See:
- https://github.com/oracle/graal/issues/7502
- https://github.com/oracle/graal/issues/7981
- https://github.com/oracle/graal/pull/6095
2023-12-13 16:12:04 +00:00
Thiago Kenji Okada
da7a0ff844
Merge pull request #264034 from r-ryantm/auto-update/graalvmCEPackages.graalpy
graalvmCEPackages.graalpy: 23.1.0 -> 23.1.1
2023-10-29 09:53:13 +00:00
Thiago Kenji Okada
f9248c32dc
Merge pull request #264033 from r-ryantm/auto-update/graalvmCEPackages.truffleruby
graalvmCEPackages.truffleruby: 23.1.0 -> 23.1.1
2023-10-29 09:52:47 +00:00
R. Ryantm
5b007e6148 graalvmCEPackages.graalpy: 23.1.0 -> 23.1.1 2023-10-28 20:52:36 +00:00
R. Ryantm
da8eff2e19 graalvmCEPackages.truffleruby: 23.1.0 -> 23.1.1 2023-10-28 20:52:06 +00:00
R. Ryantm
9586930ab6 graalvm-ce: 21.0.0 -> 21.0.1 2023-10-28 20:21:08 +00:00
Thiago Kenji Okada
6a8719229c graalvmCEPackages: some fixes to update.sh script 2023-09-28 16:03:54 +01:00
Thiago Kenji Okada
cfeeda0704 graalVMPackages.graalvm-ce-musl: init at 21.0.0
Exposing this derivation so it is easier to test and use.
2023-09-27 22:54:55 +01:00
Thiago Kenji Okada
7457b3cec3 graalvmCEPackages.buildGraalvmProduct: add Foundation to buildInputs 2023-09-27 22:29:22 +01:00
Thiago Kenji Okada
61b910555e graalvmCEPackages.buildGraalvm: fix native-image compilation 2023-09-27 22:18:56 +01:00
Thiago Kenji Okada
924991888a graalvmCEPackages: refactor 2023-09-27 16:22:24 +01:00
Thiago Kenji Okada
55d52249a7 graalvmCEPackages.buildGraalvm: mark as broken in darwin 2023-09-27 14:14:26 +01:00
Thiago Kenji Okada
8bf7e83c09 graalvmCEPackages.buildGraalvmProduct: fix build in darwin 2023-09-27 10:25:45 +01:00
Thiago Kenji Okada
76f51c0366 graalvmCEPackages: normalize package platforms in update.sh script 2023-09-27 10:25:45 +01:00
Thiago Kenji Okada
3e9ecc840b graalvmCEPackages: reorganize each product in its own subdirectory 2023-09-27 10:25:45 +01:00
Thiago Kenji Okada
8374f4d793 graalvmCEPackages.graalnodejs: init at 23.1.0 2023-09-27 10:25:45 +01:00
Thiago Kenji Okada
ba9a3fedc9 graalvmCEPackages.graaljs: init at 23.1.0 2023-09-27 10:25:44 +01:00
Thiago Kenji Okada
f52add035b graalvmCEPackages.truffleruby: init at 23.1.0 2023-09-27 10:25:44 +01:00
Thiago Kenji Okada
fef3db632a graalvmCEProducts: generate version inside update.sh script 2023-09-27 10:25:44 +01:00
Thiago Kenji Okada
681f8bfb32 graalvmCEPackages.graalpy: init at 23.1.0 2023-09-27 10:25:44 +01:00
Thiago Kenji Okada
45eff9d9c7 graalvm-ce: 22.3.1 -> 21.0.0
This initially may look like a downgrade, but this is caused by how
upstream is tagging versions.

Before they would have the GraalVM having its own version (e.g. 22.3.1),
and each version would support multiple JVM versions (e.g. 11, 17, 19).
Now each release supports only one JVM version (e.g.: 21), and they
track the same version as the JVM.

They also changed packaging, making all sub-products (e.g.: GraalPy,
GraalRuby, etc.) standalone, so they do not depend in GraalVM anymore
and have their own version. Thanks to this change, we will need to
repackage everything.

To simplify, this commit will remove all sub-products and only care
about the GraalVM/Native Image (that is back to GraalVM itself) part.
Other commits will re-added each sub-product.

Fix (partial): https://github.com/NixOS/nixpkgs/issues/257292
2023-09-27 10:25:44 +01:00
Vladimír Čunát
34ec699ea0
graalvmCEPackages.python-installable-svm-java*: fix by libxcrypt-legacy
https://hydra.nixos.org/build/213259071
2023-03-25 10:47:29 +01:00
José Luis Lafuente
9dafd18b80
graalvm19-ce: init at 22.3.1 2023-02-22 10:47:02 +01:00
Thiago Kenji Okada
cc7ec82f3c graalvmCEPackages.nodejs-installable-svm: init at 22.3.1 2023-02-15 22:43:08 +00:00
Thiago Kenji Okada
3a53307dd9 graalvmCEPackages.buildGraalvmProduct: link languages .so to $out/lib 2023-02-15 22:43:08 +00:00
Thiago Kenji Okada
1e39bda357 graalvm*-ce: improve update.sh script 2023-02-15 21:15:38 +00:00
Thiago Kenji Okada
76e8420cf8 graalvmCEPackages: remove unnecessary inputs 2023-02-15 21:07:19 +00:00
Thiago Kenji Okada
cce466a582 graalvm*-ce: allow all parameters to be overriden 2023-02-14 19:04:12 +00:00
Thiago Kenji Okada
3926d8c482 graalvmCEPackages.ruby-installable-svm: disable broken test in darwin 2023-02-14 17:53:57 +00:00