1{
2 stdenv,
3 fetchurl,
4 lib,
5 avahi-compat,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "altserver-linux";
10 version = "0.0.5";
11
12 src = fetchurl {
13 url = "https://github.com/NyaMisty/AltServer-Linux/releases/download/v${finalAttrs.version}/AltServer-x86_64";
14 hash = "sha256-C+fDrcaewRd6FQMrO443xdDk/vtHycQ5zWLCOLPqF/s=";
15 };
16
17 dontUnpack = true;
18
19 installPhase = ''
20 runHook preInstall
21
22 mkdir -p $out/bin
23 cp $src $out/bin/alt-server
24 chmod u+x $out/bin/alt-server
25
26 runHook postInstall
27 '';
28
29 meta = with lib; {
30 homepage = "https://github.com/NyaMisty/AltServer-Linux";
31 description = "AltServer for AltStore, but on-device. Requires root privileges as well as running a custom anisette server currently";
32 license = licenses.agpl3Only;
33 mainProgram = "alt-server";
34 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
35 platforms = platforms.linux;
36 maintainers = with maintainers; [ max-amb ];
37 };
38})