
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
39 lines
965 B
Nix
39 lines
965 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.agpl3Only;
|
|
mainProgram = "alt-server";
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ max-amb ];
|
|
};
|
|
})
|
|
|