aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-06-20 17:11:08 -0400
committerRosa <rosaontheweb@proton.me>2026-06-20 17:11:08 -0400
commitd47d1c3cff82fe7b61801ddacb5045f5493922ae (patch)
tree43d690847d72d202f3084f2e76849747ff9ac83f /flake.nix
parentd4a72688aec13196c6cce81e6f810e5e4529785b (diff)
port to 26.2
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix47
1 files changed, 36 insertions, 11 deletions
diff --git a/flake.nix b/flake.nix
index bac42ae..070ff36 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,15 +1,40 @@
{
- description = "A mod for Minecraft, using the Fabric modloader.";
+ description = "Minecraft fabric mod dev env";
+ inputs = {
+ flake-utils.url = "github:numtide/flake-utils";
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+ };
- inputs.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
+ ];
- outputs = { self, nixpkgs }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; in {
- devShells.${system}.default = pkgs.mkShell {
- nativeBuildInputs = with pkgs; [
- gradle
- jdk21
- jdt-language-server
- ];
- };
- };
+ LD_LIBRARY_PATH = nixpkgs.lib.makeLibraryPath buildInputs;
+ nativeBuildInputs = with pkgs; [
+ gradle_9
+ jdk25
+ jdt-language-server
+ ];
+ };
+
+ formatter = pkgs.nixfmt;
+ }
+ );
}