minetest/shell.nix
Loïc Blot a0e33ba9ea
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
2024-08-12 11:41:27 +02:00

26 lines
425 B
Nix

{ 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
];
}