diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-06-20 18:10:38 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-06-20 18:10:38 -0400 |
| commit | 470b3edafba4baaf1d2112ce5066745efd7b9ef1 (patch) | |
| tree | 9b53d19063e85ddc5fc5afce576b821da1f60aec /flake.nix | |
| parent | 5236e676cb37b4fb9ef6556f96dde38ee4922a69 (diff) | |
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 52 |
1 files changed, 36 insertions, 16 deletions
@@ -1,20 +1,40 @@ { description = "Minecraft fabric mod dev env"; - 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; [ - flite - libglvnd - libpulseaudio - ]; - - LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs; - nativeBuildInputs = with pkgs; [ - gradle_9 - jdk21 - jdt-language-server - ]; - }; + 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; + } + ); } |
