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, versionCheckHook,
nix-update-script, nix-update-script,
}: let }: let
pname = "war-in-tunnels";
version = "0.1.0"; version = "0.1.0";
in in
rustPlatform.buildRustPackage { rustPlatform.buildRustPackage {
pname = "war-in-tunnels"; inherit pname version;
inherit version;
src = ./.; src = ./.;
# src = fetchFromGitea { # src = fetchFromGitea {
@@ -38,13 +38,13 @@ in
''; '';
meta = { meta = {
description = "TUI underground game"; description = "TUI underground RTS";
homepage = "https://gitea.garandplg.com/GarandPLG/war-in-tunnels"; homepage = "https://gitea.garandplg.com/GarandPLG/war-in-tunnels";
license = lib.licenses.mit; license = lib.licenses.mit;
platforms = ["x86_64-linux"]; platforms = ["x86_64-linux"];
maintainers = with lib.maintainers; [ maintainers = with lib.maintainers; [
GarandPLG GarandPLG
]; ];
mainProgram = "war-in-tunnels"; mainProgram = pname;
}; };
} }
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
description = "TUI underground game"; description = "TUI underground RTS";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";