mirror of
https://github.com/minetest/minetest.git
synced 2024-11-22 07:33:45 +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:
parent
c7642c3c6c
commit
a0e33ba9ea
4
.gitignore
vendored
4
.gitignore
vendored
@ -43,6 +43,10 @@ build/.cmake/
|
||||
*.zsync
|
||||
appimage-build
|
||||
AppDir
|
||||
# Direnv
|
||||
.direnv/
|
||||
# Nix
|
||||
/result
|
||||
|
||||
## Files related to Minetest development cycle
|
||||
/*.patch
|
||||
|
25
shell.nix
Normal file
25
shell.nix
Normal 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
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user