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