From 6a43b28e67558a18bd6139ea6d6dd9fcdd9e564a Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Fri, 17 Apr 2026 16:21:40 +0200 Subject: [PATCH] Update package metadata and description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Define `pname` once and inherit it in the package definition. - Change description to “TUI underground RTS”. - Set `mainProgram` to `pname` for consistency. --- default.nix | 8 ++++---- flake.nix | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/default.nix b/default.nix index ad75c7a..74b84c6 100644 --- a/default.nix +++ b/default.nix @@ -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; }; } diff --git a/flake.nix b/flake.nix index 2df9c17..88034eb 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "TUI underground game"; + description = "TUI underground RTS"; inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";