aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix53
1 files changed, 35 insertions, 18 deletions
diff --git a/flake.nix b/flake.nix
index fa3e373..070ff36 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,23 +1,40 @@
{
- description = "Development environment for frank.";
-
- 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 }: {
- devShells.x86_64-linux.default = let pkgs = nixpkgs.legacyPackages.x86_64-linux;
- in pkgs.mkShell {
- buildInputs = with pkgs; [
- libglvnd
- ];
+ 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 = with pkgs; lib.makeLibraryPath [ libglvnd ];
- nativeBuildInputs = with pkgs.buildPackages; [
- gradle
- jdk25
- jdt-language-server
- ];
- };
- };
+ LD_LIBRARY_PATH = nixpkgs.lib.makeLibraryPath buildInputs;
+ nativeBuildInputs = with pkgs; [
+ gradle_9
+ jdk25
+ jdt-language-server
+ ];
+ };
+
+ formatter = pkgs.nixfmt;
+ }
+ );
}