2024-12-17 12:10:05 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
autoPatchelfHook,
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
version = "134";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2024-11-21 09:24:15 +00:00
|
|
|
name = "torrserver";
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-12-17 12:10:05 +00:00
|
|
|
url = "https://github.com/YouROK/TorrServer/releases/download/MatriX.${version}/TorrServer-linux-amd64";
|
2024-11-21 09:24:15 +00:00
|
|
|
sha256 = "sha256-WDygG9aGnD20nGxtG0t+T2KEwbJ+fZ0uRaCndirrsXI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp $src $out/bin/torrserver
|
|
|
|
chmod +x $out/bin/torrserver
|
|
|
|
'';
|
|
|
|
}
|