From 3f8cf9b158bebc00480a660d04810c9516955c86 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Tue, 1 Aug 2023 00:19:10 -0400 Subject: [PATCH] altserver-linux: rename from alt-server / AltServer-Linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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”`. --- pkgs/tools/misc/{alt-server => altserver-linux}/default.nix | 2 +- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename pkgs/tools/misc/{alt-server => altserver-linux}/default.nix (96%) diff --git a/pkgs/tools/misc/alt-server/default.nix b/pkgs/tools/misc/altserver-linux/default.nix similarity index 96% rename from pkgs/tools/misc/alt-server/default.nix rename to pkgs/tools/misc/altserver-linux/default.nix index 5a9de8cf3be3..fb689d745e93 100644 --- a/pkgs/tools/misc/alt-server/default.nix +++ b/pkgs/tools/misc/altserver-linux/default.nix @@ -6,7 +6,7 @@ }: stdenv.mkDerivation (finalAttrs: { - pname = "AltServer-Linux"; + pname = "altserver-linux"; version = "0.0.5"; src = fetchurl { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 23af6b6182af..1f9875b8d0d6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };