30 lines
633 B
Nix
30 lines
633 B
Nix
{
|
|
description = "LWJGL Wayland + nvidia bullshit";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
in
|
|
{
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
shellHook = with pkgs; ''
|
|
export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath [
|
|
wayland
|
|
libxkbcommon
|
|
libGL
|
|
]}:$LD_LIBRARY_PATH
|
|
|
|
export __GL_THREADED_OPTIMIZATIONS=0
|
|
'';
|
|
};
|
|
};
|
|
}
|