28 lines
616 B
Nix
28 lines
616 B
Nix
{
|
|
description = "Minecraft flake";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, flake-utils}:
|
|
flake-utils.lib.eachDefaultSystem
|
|
(system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
in {
|
|
devShells.default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
# minecraft
|
|
prismlauncher
|
|
|
|
jdk22_headless # Minecraft 1.21
|
|
|
|
steam-run
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|