flake: add shell
This commit is contained in:
		
							parent
							
								
									8a8d49243e
								
							
						
					
					
						commit
						bbd02babd7
					
				
							
								
								
									
										24
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								flake.nix
									
									
									
									
									
								
							| @ -1,15 +1,29 @@ | |||||||
| { | { | ||||||
|   description = "zremap nix flake"; |   description = "zremap nix flake"; | ||||||
| 
 | 
 | ||||||
|   outputs = { self, nixpkgs }: { |   outputs = { | ||||||
| 
 |     self, | ||||||
|     defaultPackage.x86_64-linux = |     nixpkgs, | ||||||
|       with import nixpkgs { system = "x86_64-linux"; }; |   }: { | ||||||
|  |     defaultPackage.x86_64-linux = with import nixpkgs {system = "x86_64-linux";}; | ||||||
|       stdenv.mkDerivation { |       stdenv.mkDerivation { | ||||||
|         pname = "zremap"; |         pname = "zremap"; | ||||||
|         version = "0.1"; |         version = "0.1"; | ||||||
|         src = self; |         src = self; | ||||||
|         nativeBuildInputs = [ zig.hook ]; |         nativeBuildInputs = [zig.hook]; | ||||||
|  |         buildInputs = [libevdev]; | ||||||
|  |       }; | ||||||
|  | 
 | ||||||
|  |     devShells.x86_64-linux.default = with import nixpkgs {system = "x86_64-linux";}; | ||||||
|  |       mkShell { | ||||||
|  |         buildInputs = [ | ||||||
|  |           libevdev | ||||||
|  |           zig | ||||||
|  |         ]; | ||||||
|  | 
 | ||||||
|  |         shellHook = '' | ||||||
|  |           echo "happy hacking!" | ||||||
|  |         ''; | ||||||
|       }; |       }; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user