Last active
February 6, 2026 18:36
-
-
Save Lgmrszd/98fb7054e63a7199f9510ba20a39bc67 to your computer and use it in GitHub Desktop.
MC modding shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| inputs = { | |
| nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
| }; | |
| outputs = { self, nixpkgs }: | |
| let | |
| pkgs = nixpkgs.legacyPackages.x86_64-linux; | |
| libs = with pkgs; [ | |
| libpulseaudio | |
| libGL | |
| glfw | |
| openal | |
| stdenv.cc.cc.lib | |
| ]; | |
| in { | |
| devShell.x86_64-linux = pkgs.mkShell { | |
| packages = []; | |
| buildInputs = libs; | |
| LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath libs; | |
| }; | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { pkgs, ... } | |
| with pkgs; [ | |
| (symlinkJoin { | |
| name = "idea-community"; | |
| paths = [ jetbrains.idea-community ]; | |
| buildInputs = [ makeWrapper ]; | |
| postBuild = '' | |
| wrapProgram $out/bin/idea-community \ | |
| --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [libpulseaudio libGL glfw openal stdenv.cc.cc.lib]}" | |
| ''; | |
| }) | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a shame this env variable isn't set by default when libgl is installed.
Thanks for the fix!