mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +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:
		
							
								
								
									
										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
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user