-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nix flake with development environment shell and direnv. (#16047)
Use with nix-direnv, `nix-shell` or `nix develop`.
- Loading branch information
1 parent
ee023b5
commit e94d36f
Showing
5 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -302,3 +302,6 @@ Resources/MapImages | |
/Content.Docfx/*site | ||
|
||
*.bak | ||
|
||
# Direnv stuff | ||
.direnv/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
|
||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-22.11"; | ||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
outputs = { self, nixpkgs, flake-utils, ... }: | ||
flake-utils.lib.simpleFlake { | ||
inherit self nixpkgs; | ||
name = "space-station-14-devshell"; | ||
shell = ./shell.nix; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} | ||
''; | ||
} |