2023-08-04 22:07:22 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, lib
|
|
|
|
, avahi-compat
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2023-08-10 07:59:29 +00:00
|
|
|
pname = "altserver-linux";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.0.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/NyaMisty/AltServer-Linux/releases/download/v${finalAttrs.version}/AltServer-x86_64";
|
|
|
|
hash = "sha256-C+fDrcaewRd6FQMrO443xdDk/vtHycQ5zWLCOLPqF/s=";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp $src $out/bin/alt-server
|
2023-08-10 07:59:29 +00:00
|
|
|
chmod u+x $out/bin/alt-server
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/NyaMisty/AltServer-Linux";
|
2024-01-13 08:15:51 +00:00
|
|
|
description = "AltServer for AltStore, but on-device. Requires root privileges as well as running a custom anisette server currently";
|
2023-08-04 22:07:22 +00:00
|
|
|
license = licenses.agpl3;
|
2023-08-10 07:59:29 +00:00
|
|
|
mainProgram = "alt-server";
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2023-08-04 22:07:22 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ max-amb ];
|
|
|
|
};
|
|
|
|
})
|
|
|
|
|