File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ set -e
2+ if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then
3+ source_url " https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" " sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM="
4+ fi
5+ use nix
Original file line number Diff line number Diff line change @@ -7,4 +7,6 @@ riderModule.iml
77/* .sln.DotSettings.user
88
99* /appsettings.Secret.yml
10- * /tempkey.jwk
10+ * /tempkey.jwk
11+
12+ .direnv
Original file line number Diff line number Diff line change 1+ {
2+ description = "Development environment for Space Station 14" ;
3+
4+ inputs . nixpkgs . url = "github:NixOS/nixpkgs/release-24.11" ;
5+ inputs . flake-utils . url = "github:numtide/flake-utils" ;
6+
7+ outputs =
8+ {
9+ self ,
10+ nixpkgs ,
11+ flake-utils ,
12+ } :
13+ flake-utils . lib . eachDefaultSystem (
14+ system :
15+ let
16+ pkgs = nixpkgs . legacyPackages . ${ system } ;
17+ in
18+ {
19+ devShells . default = import ./shell.nix { inherit pkgs ; } ;
20+ }
21+ ) ;
22+ }
Original file line number Diff line number Diff line change 1+ {
2+ pkgs ? (
3+ let
4+ lock = builtins . fromJSON ( builtins . readFile ./flake.lock ) ;
5+ in
6+ import ( builtins . fetchTarball {
7+ url = "https://github.com/NixOS/nixpkgs/archive/${ lock . nodes . nixpkgs . locked . rev } .tar.gz" ;
8+ sha256 = lock . nodes . nixpkgs . locked . narHash ;
9+ } ) { }
10+ ) ,
11+ } :
12+
13+ let
14+ dependencies = with pkgs ; [
15+ dotnetCorePackages . sdk_8_0
16+ glfw
17+ SDL2
18+ libGL
19+ openal
20+ freetype
21+ fluidsynth
22+ soundfont-fluid
23+ gtk3
24+ pango
25+ cairo
26+ atk
27+ zlib
28+ glib
29+ gdk-pixbuf
30+ nss
31+ nspr
32+ at-spi2-atk
33+ libdrm
34+ expat
35+ libxkbcommon
36+ xorg . libxcb
37+ xorg . libX11
38+ xorg . libXcomposite
39+ xorg . libXdamage
40+ xorg . libXext
41+ xorg . libXfixes
42+ xorg . libXrandr
43+ xorg . libxshmfence
44+ mesa
45+ alsa-lib
46+ dbus
47+ at-spi2-core
48+ ] ;
49+ in
50+ pkgs . mkShell {
51+ name = "space-station-14-devshell" ;
52+ buildInputs = [ pkgs . gtk3 ] ;
53+ packages = dependencies ;
54+ shellHook = ''
55+ export GLIBC_TUNABLES=glibc.rtld.dynamic_sort=1
56+ export ROBUST_SOUNDFONT_OVERRIDE=${ pkgs . soundfont-fluid } /share/soundfonts/FluidR3_GM2-2.sf2
57+ export XDG_DATA_DIRS=$GSETTINGS_SCHEMAS_PATH
58+ export LD_LIBRARY_PATH=${ pkgs . lib . makeLibraryPath dependencies }
59+ export DOTNET_ROOT=${ pkgs . dotnetCorePackages . sdk_8_0 } /share/dotnet
60+ export PATH="$PATH:/home/$(whoami)/.dotnet/tools"
61+ '' ;
62+ }
You can’t perform that action at this time.
0 commit comments