| 
									
										
										
										
											2023-06-26 22:35:52 -04:00
										 |  |  | { | 
					
						
							|  |  |  |   lib, | 
					
						
							|  |  |  |   buildGoModule, | 
					
						
							|  |  |  |   fetchFromGitHub, | 
					
						
							| 
									
										
										
										
											2023-07-01 17:53:09 -04:00
										 |  |  |   testers, | 
					
						
							|  |  |  |   tailer, | 
					
						
							| 
									
										
										
										
											2023-06-26 22:35:52 -04:00
										 |  |  | }: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-01 17:51:55 -04:00
										 |  |  | buildGoModule rec { | 
					
						
							| 
									
										
										
										
											2023-06-26 22:35:52 -04:00
										 |  |  |   pname = "tailer"; | 
					
						
							| 
									
										
										
										
											2023-07-01 17:51:55 -04:00
										 |  |  |   version = "0.1.1"; | 
					
						
							| 
									
										
										
										
											2023-06-26 22:35:52 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |   src = fetchFromGitHub { | 
					
						
							|  |  |  |     owner = "hionay"; | 
					
						
							|  |  |  |     repo = "tailer"; | 
					
						
							| 
									
										
										
										
											2023-07-01 17:51:55 -04:00
										 |  |  |     rev = "v${version}"; | 
					
						
							|  |  |  |     hash = "sha256-gPezz2ksqdCffgdAHwU2NMTar2glp5YGfA5C+tMYPtE="; | 
					
						
							| 
									
										
										
										
											2023-06-26 22:35:52 -04:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   vendorHash = "sha256-nQqSvfN+ed/g5VkbD6XhZNA1G3CGGfwFDdadJ5+WoD0="; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-01 17:51:55 -04:00
										 |  |  |   ldflags = [ | 
					
						
							|  |  |  |     "-s" | 
					
						
							|  |  |  |     "-w" | 
					
						
							|  |  |  |     "-X=main.version=${version}" | 
					
						
							|  |  |  |   ]; | 
					
						
							| 
									
										
										
										
											2023-06-26 22:35:52 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-01 17:53:09 -04:00
										 |  |  |   passthru.tests = { | 
					
						
							|  |  |  |     version = testers.testVersion { | 
					
						
							|  |  |  |       package = tailer; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-26 22:35:52 -04:00
										 |  |  |   meta = with lib; { | 
					
						
							|  |  |  |     description = "CLI tool to insert lines when command output stops"; | 
					
						
							|  |  |  |     homepage = "https://github.com/hionay/tailer"; | 
					
						
							|  |  |  |     license = licenses.mit; | 
					
						
							|  |  |  |     maintainers = with maintainers; [ figsoda ]; | 
					
						
							| 
									
										
										
										
											2023-11-27 02:17:53 +01:00
										 |  |  |     mainProgram = "tailer"; | 
					
						
							| 
									
										
										
										
											2023-06-26 22:35:52 -04:00
										 |  |  |   }; | 
					
						
							|  |  |  | } |