Add nix flake with development environment shell and direnv. (#16047)
Use with nix-direnv, `nix-shell` or `nix develop`.
This commit is contained in:
committed by
GitHub
parent
ee023b567a
commit
e94d36f51a
31
shell.nix
Normal file
31
shell.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
let
|
||||
dependencies = with pkgs; [
|
||||
dotnetCorePackages.sdk_7_0
|
||||
glfw
|
||||
SDL2
|
||||
libGL
|
||||
openal
|
||||
freetype
|
||||
fluidsynth
|
||||
soundfont-fluid
|
||||
gtk3
|
||||
pango
|
||||
cairo
|
||||
atk
|
||||
zlib
|
||||
glib
|
||||
gdk-pixbuf
|
||||
];
|
||||
in pkgs.mkShell {
|
||||
name = "space-station-14-devshell";
|
||||
buildInputs = [ pkgs.gtk3 ];
|
||||
inputsFrom = dependencies;
|
||||
shellHook = ''
|
||||
export GLIBC_TUNABLES=glibc.rtld.dynamic_sort=1
|
||||
export ROBUST_SOUNDFONT_OVERRIDE=${pkgs.soundfont-fluid}/share/soundfonts/FluidR3_GM2-2.sf2
|
||||
export XDG_DATA_DIRS=$GSETTINGS_SCHEMAS_PATH
|
||||
export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath dependencies}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user