flake: format and update zig
This commit is contained in:
		
							parent
							
								
									8a7923bd4e
								
							
						
					
					
						commit
						79a35cf42e
					
				
							
								
								
									
										66
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										66
									
								
								flake.nix
									
									
									
									
									
								
							| @ -1,34 +1,44 @@ | |||||||
| { | { | ||||||
|   description = "zremap nix flake"; |   description = "zremap nix flake"; | ||||||
| 
 | 
 | ||||||
|   outputs = { |   outputs = | ||||||
|     self, |     { | ||||||
|     nixpkgs, |       self, | ||||||
|   }: { |       nixpkgs, | ||||||
|     defaultPackage.x86_64-linux = with import nixpkgs {system = "x86_64-linux";}; |     }: | ||||||
|       stdenv.mkDerivation { |     { | ||||||
|         pname = "zremap"; |       defaultPackage.x86_64-linux = | ||||||
|         version = "0.2"; |         with import nixpkgs { system = "x86_64-linux"; }; | ||||||
|         src = self; |         stdenv.mkDerivation { | ||||||
|         nativeBuildInputs = [zig.hook]; |           pname = "zremap"; | ||||||
|         buildInputs = [libevdev pkg-config]; |           version = "0.2"; | ||||||
|         buildPhase = '' |           src = self; | ||||||
|           NIX_CFLAGS_COMPILE="-static -isystem $(pkg-config --variable=includedir libevdev)/libevdev-1.0 $NIX_CFLAGS_COMPILE" |           nativeBuildInputs = [ zig.hook ]; | ||||||
|         ''; |           buildInputs = [ | ||||||
|       }; |             libevdev | ||||||
|  |             pkg-config | ||||||
|  |           ]; | ||||||
|  |           buildPhase = '' | ||||||
|  |             NIX_CFLAGS_COMPILE="-static -isystem $(pkg-config --variable=includedir libevdev)/libevdev-1.0 $NIX_CFLAGS_COMPILE" | ||||||
|  |           ''; | ||||||
|  |         }; | ||||||
| 
 | 
 | ||||||
|     devShells.x86_64-linux.default = with import nixpkgs {system = "x86_64-linux";}; |       devShells.x86_64-linux.default = | ||||||
|       mkShell { |         with import nixpkgs { system = "x86_64-linux"; }; | ||||||
|         nativeBuildInputs = [zig_0_12 lldb]; |         mkShell { | ||||||
|         buildInputs = [ |           nativeBuildInputs = [ | ||||||
|           libevdev |             zig | ||||||
|           pkg-config |             lldb | ||||||
|         ]; |           ]; | ||||||
|  |           buildInputs = [ | ||||||
|  |             libevdev | ||||||
|  |             pkg-config | ||||||
|  |           ]; | ||||||
| 
 | 
 | ||||||
|         shellHook = '' |           shellHook = '' | ||||||
|           NIX_CFLAGS_COMPILE="-isystem $(pkg-config --variable=includedir libevdev)/libevdev-1.0 $NIX_CFLAGS_COMPILE" |             NIX_CFLAGS_COMPILE="-isystem $(pkg-config --variable=includedir libevdev)/libevdev-1.0 $NIX_CFLAGS_COMPILE" | ||||||
|                  echo "happy hacking!" |                    echo "happy hacking!" | ||||||
|         ''; |           ''; | ||||||
|       }; |         }; | ||||||
|   }; |     }; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user