diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-06-20 18:30:28 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-06-20 18:30:28 -0400 |
| commit | decab4b3bf8ee5d92f21436ece61b5a7daa6f4eb (patch) | |
| tree | a858992d8924c2895f6823d9d62ade0443fd8ed7 /flake.nix | |
| parent | 76625bcdc1337326bc3c3a748b06c078769768c1 (diff) | |
build against 26.2HEADv0.1.0+26.2main
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 53 |
1 files changed, 34 insertions, 19 deletions
@@ -1,25 +1,40 @@ { - description = "Mod dev flake"; - inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + description = "Minecraft fabric mod dev env"; + inputs = { + flake-utils.url = "github:numtide/flake-utils"; + 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 - ]; + 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 = with pkgs; lib.makeLibraryPath buildInputs; - nativeBuildInputs = with pkgs; [ - gradle_9 - jdk21 - jdt-language-server - ]; - }; + LD_LIBRARY_PATH = nixpkgs.lib.makeLibraryPath buildInputs; + nativeBuildInputs = with pkgs; [ + gradle_9 + jdk25 + jdt-language-server + ]; + }; - formatter.x86_64-linux = pkgs.nixfmt; - }; + formatter = pkgs.nixfmt; + } + ); } |
