1
0
mirror of https://github.com/minetest/minetest.git synced 2024-12-27 19:20:33 +01:00

dev: add shell.nix (#14823)

This permit to have reproducible development environment across OS (Linuxes, but maybe Mac OSX too).

It makes minetest compilable directly in a nix-shell with Nix/Lix but also on NixOS
This commit is contained in:
Loïc Blot 2024-08-12 11:41:27 +02:00 committed by GitHub
parent c7642c3c6c
commit a0e33ba9ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 29 additions and 0 deletions

4
.gitignore vendored
View File

@ -43,6 +43,10 @@ build/.cmake/
*.zsync *.zsync
appimage-build appimage-build
AppDir AppDir
# Direnv
.direnv/
# Nix
/result
## Files related to Minetest development cycle ## Files related to Minetest development cycle
/*.patch /*.patch

25
shell.nix Normal file
View File

@ -0,0 +1,25 @@
{ pkgs ? import <nixpkgs> {}, }:
pkgs.mkShell {
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
env.LANG = "C.UTF-8";
env.LC_ALL = "C.UTF-8";
packages = [
pkgs.gcc
pkgs.cmake
pkgs.zlib
pkgs.zstd
pkgs.libjpeg
pkgs.libpng
pkgs.libGL
pkgs.SDL2
pkgs.openal
pkgs.curl
pkgs.libvorbis
pkgs.libogg
pkgs.gettext
pkgs.freetype
pkgs.sqlite
];
}