summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.lock61
-rw-r--r--flake.nix56
2 files changed, 117 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..477c915
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,61 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "inputs": {
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1731533236,
+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1763283776,
+ "narHash": "sha256-Y7TDFPK4GlqrKrivOcsHG8xSGqQx3A6c+i7novT85Uk=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "50a96edd8d0db6cc8db57dab6bb6d6ee1f3dc49a",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..ca91c22
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,56 @@
+{
+ description = "minecraft java";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+ flake-utils.url = "github:numtide/flake-utils";
+ };
+
+ outputs = {
+ nixpkgs,
+ flake-utils,
+ ...
+ }: let
+ lib = nixpkgs.lib;
+ supportedSystems = let
+ inherit (flake-utils.lib) system;
+ in [
+ system.aarch64-linux
+ system.x86_64-linux
+ ];
+ in
+ flake-utils.lib.eachSystem supportedSystems (system: let
+ pkgs = import nixpkgs {inherit system;};
+ libs = with pkgs; [
+ libGL
+ alsa-lib
+ assimp
+ openal
+ stb
+ pulseaudio
+ wayland
+ wayland-scanner
+ xorg.libXrandr
+ xorg.libXinerama
+ xorg.libXcursor
+ xorg.libXi
+ xorg.libX11
+ libxkbcommon
+ ];
+ in {
+ devShell =
+ pkgs.mkShell
+ {
+ packages = with pkgs;
+ [
+ maven
+ jdk8
+ ]
+ ++ libs;
+
+ LD_LIBRARY_PATH = lib.makeLibraryPath libs;
+ };
+
+ formatter = pkgs.alejandra;
+ });
+}