-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
37 lines (32 loc) · 967 Bytes
/
flake.nix
File metadata and controls
37 lines (32 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
flake-parts.url = "github:hercules-ci/flake-parts";
systems.url = "github:nix-systems/default";
};
outputs = inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
perSystem = { config, self', pkgs, lib, system, ... }: let
java = pkgs.jetbrains.jdk-no-jcef;
nativeBuildInputs = with pkgs; [
java
git
];
buildInputs = with pkgs; [
libGL
glfw-wayland-minecraft # Not always needed, but in case it is, it's here.
flite # TTS
libpulseaudio # Required for audio
];
in {
devShells.default = pkgs.mkShell {
inherit nativeBuildInputs buildInputs;
env = {
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
JAVA_HOME = "${java.home}";
};
};
};
};
}