7 buildDotnetModule rec {
8 pname = "torrentstream";
11 src = fetchFromGitHub {
12 owner = "trueromanus";
13 repo = "TorrentStream";
15 hash = "sha256-3lmQWx00Ulp0ZyQBEhFT+djHBi84foMlWGJEp/UOGek=";
18 sourceRoot = "${src.name}/src";
20 dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
21 dotnet-sdk = dotnetCorePackages.sdk_8_0;
22 executables = [ "TorrentStream" ];
23 nugetDeps = ./deps.nix;
24 projectFile = "TorrentStream.csproj";
25 selfContainedBuild = true;
28 "-p:PublishAot=false" # untill https://github.com/NixOS/nixpkgs/issues/280923 is fixed
29 "-p:PublishSingleFile=true"
33 ./0001-display-the-message-of-caught-exceptions.patch
37 homepage = "https://github.com/trueromanus/TorrentStream";
38 description = "Simple web server for streaming torrent files in video players";
39 license = lib.licenses.bsd2;
40 platforms = lib.platforms.all;
41 mainProgram = "TorrentStream";
42 maintainers = with lib.maintainers; [ _3JlOy-PYCCKUi ];