| 
									
										
										
										
											2023-10-17 02:27:26 +03:00
										 |  |  | { | 
					
						
							|  |  |  |   lib, | 
					
						
							|  |  |  |   buildDotnetModule, | 
					
						
							|  |  |  |   fetchFromGitHub, | 
					
						
							|  |  |  |   dotnetCorePackages, | 
					
						
							|  |  |  | }: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | buildDotnetModule rec { | 
					
						
							|  |  |  |   pname = "torrentstream"; | 
					
						
							| 
									
										
										
										
											2024-05-13 00:02:11 +00:00
										 |  |  |   version = "1.0.1.11"; | 
					
						
							| 
									
										
										
										
											2023-10-17 02:27:26 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |   src = fetchFromGitHub { | 
					
						
							|  |  |  |     owner = "trueromanus"; | 
					
						
							|  |  |  |     repo = "TorrentStream"; | 
					
						
							| 
									
										
										
										
											2025-04-08 02:51:45 -04:00
										 |  |  |     rev = version; | 
					
						
							| 
									
										
										
										
											2024-05-13 00:02:11 +00:00
										 |  |  |     hash = "sha256-3lmQWx00Ulp0ZyQBEhFT+djHBi84foMlWGJEp/UOGek="; | 
					
						
							| 
									
										
										
										
											2023-10-17 02:27:26 +03:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-09 01:04:40 +08:00
										 |  |  |   sourceRoot = "${src.name}/src"; | 
					
						
							| 
									
										
										
										
											2023-10-17 02:27:26 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-13 00:02:11 +00:00
										 |  |  |   dotnet-runtime = dotnetCorePackages.aspnetcore_8_0; | 
					
						
							|  |  |  |   dotnet-sdk = dotnetCorePackages.sdk_8_0; | 
					
						
							| 
									
										
										
										
											2023-10-17 02:27:26 +03:00
										 |  |  |   executables = [ "TorrentStream" ]; | 
					
						
							| 
									
										
										
										
											2024-12-05 23:37:59 -03:00
										 |  |  |   nugetDeps = ./deps.json; | 
					
						
							| 
									
										
										
										
											2024-05-13 00:02:11 +00:00
										 |  |  |   projectFile = "TorrentStream.csproj"; | 
					
						
							|  |  |  |   selfContainedBuild = true; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   dotnetFlags = [ | 
					
						
							|  |  |  |     "-p:PublishAot=false" # untill https://github.com/NixOS/nixpkgs/issues/280923 is fixed | 
					
						
							|  |  |  |     "-p:PublishSingleFile=true" | 
					
						
							|  |  |  |   ]; | 
					
						
							| 
									
										
										
										
											2023-10-17 02:27:26 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |   patches = [ | 
					
						
							|  |  |  |     ./0001-display-the-message-of-caught-exceptions.patch | 
					
						
							|  |  |  |   ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   meta = { | 
					
						
							|  |  |  |     homepage = "https://github.com/trueromanus/TorrentStream"; | 
					
						
							|  |  |  |     description = "Simple web server for streaming torrent files in video players"; | 
					
						
							|  |  |  |     license = lib.licenses.bsd2; | 
					
						
							|  |  |  |     platforms = lib.platforms.all; | 
					
						
							|  |  |  |     mainProgram = "TorrentStream"; | 
					
						
							|  |  |  |     maintainers = with lib.maintainers; [ _3JlOy-PYCCKUi ]; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | } |