torrserver: init at 141 (#472989)

This commit is contained in:
Sandro
2026-03-04 01:07:32 +00:00
committed by GitHub
+42
View File
@@ -0,0 +1,42 @@
{
lib,
fetchFromGitHub,
buildGo126Module,
makeWrapper,
ffmpeg,
}:
buildGo126Module rec {
pname = "torrserver";
version = "141";
src = fetchFromGitHub {
owner = "YouROK";
repo = "TorrServer";
tag = "MatriX.${version}";
sha256 = "sha256-OeAAYyxfZxcx0ANeRAWJTrZMNWtdrM/pwXyO5QNTwYo=";
};
vendorHash = "sha256-rjdE9yf6S3ZovEeRO0+5sJsy9PRdFFejFDhkgJLMz58=";
modRoot = "server";
subPackages = [ "cmd" ];
ldflags = [
"-s"
"-w"
];
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
mv $out/bin/cmd $out/bin/torrserver
wrapProgram $out/bin/torrserver \
--set PATH ${lib.makeBinPath [ ffmpeg ]}
'';
meta = {
description = "Simple and powerful tool for streaming torrents";
homepage = "https://github.com/YouROK/TorrServer";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ r4v3n6101 ];
};
}