Update package metadata and description

- Define `pname` once and inherit it in the package definition.
- Change description to “TUI underground RTS”.
- Set `mainProgram` to `pname` for consistency.
This commit is contained in:
2026-04-17 16:21:40 +02:00
parent fccb9bf733
commit 6a43b28e67
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -7,11 +7,11 @@
versionCheckHook,
nix-update-script,
}: let
pname = "war-in-tunnels";
version = "0.1.0";
in
rustPlatform.buildRustPackage {
pname = "war-in-tunnels";
inherit version;
inherit pname version;
src = ./.;
# src = fetchFromGitea {
@@ -38,13 +38,13 @@ in
'';
meta = {
description = "TUI underground game";
description = "TUI underground RTS";
homepage = "https://gitea.garandplg.com/GarandPLG/war-in-tunnels";
license = lib.licenses.mit;
platforms = ["x86_64-linux"];
maintainers = with lib.maintainers; [
GarandPLG
];
mainProgram = "war-in-tunnels";
mainProgram = pname;
};
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
description = "TUI underground game";
description = "TUI underground RTS";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";