diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-06-29 16:11:49 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-06-29 16:11:49 -0400 |
| commit | 45788b8a23bf313c7b70182ba1932da5de3e462a (patch) | |
| tree | 7bc53a7b97099b9c36b447723472402b23c7f7ba /flake.nix | |
init
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..481f05c --- /dev/null +++ b/flake.nix @@ -0,0 +1,40 @@ +{ + description = "Minecraft fabric mod dev env"; + inputs = { + flake-utils.url = "github:numtide/flake-utils"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + }; + + outputs = + { + self, + flake-utils, + nixpkgs, + }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShells.default = pkgs.mkShellNoCC rec { + buildInputs = with pkgs; [ + flite + libglvnd + libpulseaudio + pipewire + vulkan-loader + ]; + + LD_LIBRARY_PATH = nixpkgs.lib.makeLibraryPath buildInputs; + nativeBuildInputs = with pkgs; [ + gradle_9 + jdk25 + jdt-language-server + ]; + }; + + formatter = pkgs.nixfmt; + } + ); +} |
