diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..2c41047 --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + description = "Mod dev flake"; + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + outputs = + { self, nixpkgs }: + let + pkgs = nixpkgs.legacyPackages.x86_64-linux; + in + { + devShells.x86_64-linux.default = pkgs.mkShellNoCC rec { + buildInputs = with pkgs; [ + libglvnd + ]; + + LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath buildInputs; + nativeBuildInputs = with pkgs; [ + gradle_9 + jdk21 + jdt-language-server + ]; + }; + + formatter.x86_64-linux = pkgs.nixfmt; + }; +} |
