Skip to content

Instantly share code, notes, and snippets.

@Aeva
Created May 4, 2024 20:05
Show Gist options
  • Save Aeva/227e45b886500d315c0bd00af635d985 to your computer and use it in GitHub Desktop.
Save Aeva/227e45b886500d315c0bd00af635d985 to your computer and use it in GitHub Desktop.
shell.nix for monogame
{ pkgs ? import <nixpkgs> {} }:
# This seems sufficient enough to run a mgdesktopgl project with `dotent run`.
# I have not tested this beyond running a blank one without crashing.
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
dotnet-sdk_6
];
LD_LIBRARY_PATH="${pkgs.freetype}/lib/;${pkgs.libGL}/lib/;${pkgs.pulseaudio}/lib/;${pkgs.xorg.libX11}/lib;${pkgs.xorg.libXrandr}/lib/";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment