1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-09 18:33:52 +00:00
ultima/modules/nixos/programs/torrserver/package.nix

26 lines
502 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
'';
}