mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +00:00 
			
		
		
		
	feat(flake): move to build inputs and remove unnecessary packages
This commit is contained in:
		
							parent
							
								
									838bfae80a
								
							
						
					
					
						commit
						7af4d9d3f0
					
				
							
								
								
									
										39
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										39
									
								
								flake.nix
									
									
									
									
									
								
							| 
						 | 
					@ -102,7 +102,13 @@
 | 
				
			||||||
        default = pkgs.mkShell {
 | 
					        default = pkgs.mkShell {
 | 
				
			||||||
          # For testing renderers and examples, aswell as tests
 | 
					          # For testing renderers and examples, aswell as tests
 | 
				
			||||||
          packages = with pkgs; [
 | 
					          packages = with pkgs; [
 | 
				
			||||||
            # Renderers
 | 
					            cmake # this is needed for building examples and tests
 | 
				
			||||||
 | 
					            clang-tools # for clangd and clang-tidy
 | 
				
			||||||
 | 
					            pkg-config
 | 
				
			||||||
 | 
					            alejandra # for formatting nix
 | 
				
			||||||
 | 
					          ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          buildInputs = with pkgs; [
 | 
				
			||||||
            SDL2
 | 
					            SDL2
 | 
				
			||||||
            SDL2_image
 | 
					            SDL2_image
 | 
				
			||||||
            SDL2_ttf
 | 
					            SDL2_ttf
 | 
				
			||||||
| 
						 | 
					@ -115,43 +121,12 @@
 | 
				
			||||||
            raylib
 | 
					            raylib
 | 
				
			||||||
            sokol
 | 
					            sokol
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            cmake # this is needed for building examples and tests
 | 
					 | 
				
			||||||
            gcc
 | 
					 | 
				
			||||||
            clang-tools # for clangd and clang-tidy
 | 
					 | 
				
			||||||
            pkg-config
 | 
					 | 
				
			||||||
            alejandra # for formatting nix
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            # for tests
 | 
					 | 
				
			||||||
            docker
 | 
					 | 
				
			||||||
            docker-compose
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            # dependencies for examples and tests
 | 
					            # dependencies for examples and tests
 | 
				
			||||||
            xorg.libXrandr
 | 
					            xorg.libXrandr
 | 
				
			||||||
            xorg.libXinerama
 | 
					            xorg.libXinerama
 | 
				
			||||||
            xorg.libXcursor
 | 
					            xorg.libXcursor
 | 
				
			||||||
            xorg.libXi
 | 
					            xorg.libXi
 | 
				
			||||||
          ];
 | 
					          ];
 | 
				
			||||||
 | 
					 | 
				
			||||||
          LD_LIBRARY_PATH = "${lib.makeLibraryPath [
 | 
					 | 
				
			||||||
            # Renderers
 | 
					 | 
				
			||||||
            pkgs.SDL2
 | 
					 | 
				
			||||||
            pkgs.SDL2_image
 | 
					 | 
				
			||||||
            pkgs.SDL2_ttf
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            pkgs.sdl3
 | 
					 | 
				
			||||||
            pkgs.sdl3-ttf
 | 
					 | 
				
			||||||
            pkgs.sdl3-image
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            pkgs.cairo
 | 
					 | 
				
			||||||
            pkgs.raylib
 | 
					 | 
				
			||||||
            pkgs.sokol
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            # dependencies for examples and tests
 | 
					 | 
				
			||||||
            pkgs.xorg.libXrandr
 | 
					 | 
				
			||||||
            pkgs.xorg.libXinerama
 | 
					 | 
				
			||||||
            pkgs.xorg.libXcursor
 | 
					 | 
				
			||||||
            pkgs.xorg.libXi
 | 
					 | 
				
			||||||
          ]}";
 | 
					 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue