Added shell.nix and updated Building.md (#14019)

This commit is contained in:
MartV0
2025-09-14 17:13:02 +02:00
committed by GitHub
parent f1c233f806
commit af50d71113
2 changed files with 44 additions and 0 deletions

View File

@@ -133,6 +133,15 @@ brew install ccache gettext luacheck p7zip
export MACOSX_DEPLOYMENT_TARGET=10.09 export MACOSX_DEPLOYMENT_TARGET=10.09
``` ```
### Nix
Ensure the [nix is installed](https://nixos.org/download/).
Then simply run the included nix shell:
```
nix-shell tools/shell.nix
```
## Getting the source ## Getting the source

35
tools/shell.nix Normal file
View File

@@ -0,0 +1,35 @@
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-25.05";
pkgs = import nixpkgs { config = {}; overlays = []; };
in
pkgs.mkShell {
packages = with pkgs; [
autoconf
automake
libtool
cmake
gcc
git
gnumake
meson
nasm
ninja
gnupatch
perl
pkg-config
unzip
wget
SDL2
p7zip
ccache
gettext
luajitPackages.luacheck
];
shellHook = ''
export LD_LIBRARY_PATH=${pkgs.SDL2}/lib:$LD_LIBRARY_PATH
'';
}