mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-08 18:13:52 +00:00
21 lines
499 B
Nix
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
|
||
|
'';
|
||
|
}
|