-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflake.nix
More file actions
44 lines (39 loc) · 1.1 KB
/
flake.nix
File metadata and controls
44 lines (39 loc) · 1.1 KB
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
38
39
40
41
42
43
44
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
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
xorg.libX11
xorg.libXext
xorg.libXcursor
xorg.libXrandr
xorg.libXxf86vm
xorg.xrandr
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}";
};
};
};
};
}