-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathflake.nix
37 lines (34 loc) · 922 Bytes
/
flake.nix
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-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
libs = with pkgs; [
libGL
glfw-wayland-minecraft
openal
#flite
libpulseaudio
#udev
#xorg.libXcursor
];
jbr = pkgs.callPackage ./scripts/jbr.nix {};
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
jbr
];
buildInputs = libs;
LD_LIBRARY_PATH = lib.makeLibraryPath libs;
env = {
JAVA_HOME = "${jbr}/lib/openjdk/";
};
};
};
};
}