Add C flake
This commit is contained in:
		
							parent
							
								
									368c992a74
								
							
						
					
					
						commit
						7f731d6a02
					
				
					 2 changed files with 89 additions and 0 deletions
				
			
		
							
								
								
									
										28
									
								
								c/flake.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								c/flake.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,28 @@ | |||
| { | ||||
|   description = "C Flake"; | ||||
| 
 | ||||
|   inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||||
|   inputs.flake-utils.url = "github:numtide/flake-utils"; | ||||
| 
 | ||||
|   outputs = { self, nixpkgs, flake-utils }: | ||||
|   flake-utils.lib.eachDefaultSystem | ||||
|   ( system: | ||||
|   let | ||||
|     pkgs = import nixpkgs { | ||||
|       inherit system; | ||||
|       config.allowUnfree = true; | ||||
|     }; | ||||
|   in { | ||||
|     devShells.default = pkgs.mkShell { | ||||
|       packages = with pkgs; [ | ||||
|         cmake | ||||
|         gcc | ||||
|         gnumake | ||||
|         valgrind | ||||
| 
 | ||||
|         # You might want to use your own IDE. | ||||
|         jetbrains.clion | ||||
|       ]; | ||||
|     }; | ||||
|   }); | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue