-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathflake.nix
More file actions
29 lines (25 loc) · 755 Bytes
/
flake.nix
File metadata and controls
29 lines (25 loc) · 755 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
{
description = "Minecraft modding flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
jetbrains.idea-ultimate
];
LD_LIBRARY_PATH = nixpkgs.lib.makeLibraryPath [ pkgs.openal pkgs.glfw pkgs.libGL pkgs.flite ];
JAVA_HOME = "${pkgs.jdk21}/lib/openjdk";
JAVA_17_HOME = "${pkgs.jdk17}/lib/openjdk";
};
}
);
}