1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-06 10:53:55 +00:00
ultima/modules/nixos/programs/torrserver/package.nix
2024-11-21 18:24:15 +09:00

21 lines
499 B
Nix

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