mirror of
				https://github.com/RGBCube/hjem
				synced 2025-10-31 13:42:44 +00:00 
			
		
		
		
	flake: add direnv, devshell
This commit is contained in:
		
							parent
							
								
									ca01f51339
								
							
						
					
					
						commit
						eaa0c47473
					
				
					 3 changed files with 18 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								.envrc
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.envrc
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | ||||||
|  | use flake | ||||||
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							|  | @ -1,3 +1,4 @@ | ||||||
| # Nix build/test artifacts | # Nix build/test artifacts | ||||||
| .nixos-test-history | .nixos-test-history | ||||||
| result* | result* | ||||||
|  | /.direnv | ||||||
|  |  | ||||||
							
								
								
									
										16
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								flake.nix
									
										
									
									
									
								
							|  | @ -23,6 +23,22 @@ | ||||||
|       hjem-special-args = import ./tests/special-args.nix checkArgs; |       hjem-special-args = import ./tests/special-args.nix checkArgs; | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|  |     devShells = forAllSystems (system: let | ||||||
|  |       inherit (builtins) attrValues; | ||||||
|  |       pkgs = nixpkgs.legacyPackages.${system}; | ||||||
|  |     in { | ||||||
|  |       default = pkgs.mkShell { | ||||||
|  |         packages = attrValues { | ||||||
|  |           inherit | ||||||
|  |             (pkgs) | ||||||
|  |             # cue validator | ||||||
|  |             cue | ||||||
|  |             go | ||||||
|  |             ; | ||||||
|  |         }; | ||||||
|  |       }; | ||||||
|  |     }); | ||||||
|  | 
 | ||||||
|     formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra); |     formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra); | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 éclairevoyant
						éclairevoyant