forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
55 lines (54 loc) · 1.12 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ pkgs ? import (builtins.fetchTarball {
url =
"https://github.com/NixOS/nixpkgs/archive/cda0e75a0bd7cf05bd3e40658c163e4f8f376b7b.tar.gz";
sha256 = "sha256-Toz3HEHeq6Esr5uDOMel8BiGSa94gj+og3Yz4YEgjYI=";
}) { } }:
let
dependencies = with pkgs; [
dotnetCorePackages.sdk_8_0
glfw
SDL2
libGL
openal
glibc
freetype
fluidsynth
soundfont-fluid
gtk3
pango
cairo
atk
zlib
glib
gdk-pixbuf
nss
nspr
at-spi2-atk
libdrm
expat
libxkbcommon
xorg.libxcb
xorg.libX11
xorg.libXcomposite
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXrandr
xorg.libxshmfence
mesa
alsa-lib
dbus
at-spi2-core
cups
];
in pkgs.mkShell {
name = "space-station-14-devshell";
buildInputs = [ pkgs.gtk3 ];
packages = 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}
'';
}