depot/third_party/nixpkgs/pkgs/tools/misc/altserver-linux/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

38 lines
962 B
Nix

{ stdenv
, fetchurl
, lib
, avahi-compat
}:
stdenv.mkDerivation (finalAttrs: {
pname = "altserver-linux";
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
chmod u+x $out/bin/alt-server
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/NyaMisty/AltServer-Linux";
description = "AltServer for AltStore, but on-device. Requires root privileges as well as running a custom anisette server currently.";
license = licenses.agpl3;
mainProgram = "alt-server";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
platforms = platforms.linux;
maintainers = with maintainers; [ max-amb ];
};
})