Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildDotnetModule,
|
|
fetchFromGitHub,
|
|
dotnetCorePackages,
|
|
}:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "torrentstream";
|
|
version = "1.0.1.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trueromanus";
|
|
repo = "TorrentStream";
|
|
rev = version;
|
|
hash = "sha256-3lmQWx00Ulp0ZyQBEhFT+djHBi84foMlWGJEp/UOGek=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/src";
|
|
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
executables = [ "TorrentStream" ];
|
|
nugetDeps = ./deps.json;
|
|
projectFile = "TorrentStream.csproj";
|
|
selfContainedBuild = true;
|
|
|
|
dotnetFlags = [
|
|
"-p:PublishAot=false" # untill https://github.com/NixOS/nixpkgs/issues/280923 is fixed
|
|
"-p:PublishSingleFile=true"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|