altserver-linux: rename from alt-server / AltServer-Linux

- Make pname all lowercase—do not transform AltServer -> alt-server, but
  to altserver as the name already has hyphens elsewhere, and many other
  packages (including the example in nixpkgs manual) do this
- Change variable and dir names to match pname as deviation seems
  unnecessary here and only leads to confusion; this project is also a
  variation on AltServer-Windows, so keeping the “-linux” seems
  warranted

From https://nixos.org/manual/nixpkgs/unstable/#sec-package-naming:

> The pname and the version attribute must not contain uppercase letters
> e.g., "mplayer" instead of “MPlayer”`.
This commit is contained in:
Andrew Marshall 2023-08-01 00:19:10 -04:00
parent 22e652a317
commit 3f8cf9b158
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
}:
stdenv.mkDerivation (finalAttrs: {
pname = "AltServer-Linux";
pname = "altserver-linux";
version = "0.0.5";
src = fetchurl {

View file

@ -262,7 +262,7 @@ with pkgs;
alterx = callPackage ../tools/security/alterx { };
alt-server = callPackage ../tools/misc/alt-server { };
altserver-linux = callPackage ../tools/misc/altserver-linux { };
asciicam = callPackage ../applications/video/asciicam { };