Skip to content

Instantly share code, notes, and snippets.

@Mawfyy
Last active March 17, 2024 13:46
Show Gist options
  • Save Mawfyy/3df98b3a7729735b229d59cd616b81cc to your computer and use it in GitHub Desktop.
Save Mawfyy/3df98b3a7729735b229d59cd616b81cc to your computer and use it in GitHub Desktop.
How to make geode sdk works in nixOS
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