-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
37 lines (33 loc) · 1.09 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
description = "Nix flake for kotling-graalvm-playground";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, nixpkgs-stable, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
graalvm-21 = nixpkgs-stable.legacyPackages.${system}.graalvm-ce;
in with pkgs; {
devShells.default = mkShell {
packages = [
direnv
graalvm-21
just
tokei
];
# Workaround for a GraalVM issue where the builder no longer has access to
# environment variables since 21.0.0
#
# https://github.com/oracle/graal/pull/6095
# https://github.com/oracle/graal/issues/7502
env.NATIVE_IMAGE_DEPRECATED_BUILDER_SANITATION = "true";
shellHook = ''
# health checks for Nix flake inputs
nix run "github:DeterminateSystems/flake-checker"
'';
};
}
);
}