Last active
March 17, 2024 13:46
-
-
Save Mawfyy/3df98b3a7729735b229d59cd616b81cc to your computer and use it in GitHub Desktop.
How to make geode sdk works in nixOS
This file contains 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
All you need to know is you need to make your FHS environment using pkgs.buildFHSEnv like this: | |
{ pkgs ? import <nixpkgs> {} }: | |
(pkgs.buildFHSEnv { | |
name = "simple-x11-env"; | |
targetPkgs = pkgs: (with pkgs; [ | |
udev | |
alsa-lib | |
cmake | |
llvmPackages_17.clang-unwrapped | |
llvmPackages_17.llvm | |
lld_17 | |
]) ++ (with pkgs.xorg; [ | |
libX11 | |
libXcursor | |
libXrandr | |
]); | |
multiPkgs = pkgs: (with pkgs; [ | |
udev | |
alsa-lib | |
]); | |
runScript = "bash"; | |
}).env | |
copy that, into shell.nix file, later configure your local variables if you don't have configure yet like: | |
- GEODE_SDK (that route is set when you use the geode cli to install it) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment