From fc6f12b97848aec765ee84f0dfdc110851024316 Mon Sep 17 00:00:00 2001 From: Ali Rizvi Date: Wed, 16 Oct 2024 21:49:51 -0400 Subject: [PATCH] greetd.tuigreet: add man page --- .../display-managers/greetd/tuigreet.nix | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/display-managers/greetd/tuigreet.nix b/pkgs/applications/display-managers/greetd/tuigreet.nix index 11ca43c61436..39e6d482f2c0 100644 --- a/pkgs/applications/display-managers/greetd/tuigreet.nix +++ b/pkgs/applications/display-managers/greetd/tuigreet.nix @@ -1,8 +1,11 @@ -{ lib -, rustPlatform -, fetchFromGitHub -}: +{ + lib, + rustPlatform, + fetchFromGitHub, + installShellFiles, + scdoc, +}: rustPlatform.buildRustPackage rec { pname = "tuigreet"; version = "0.9.1"; @@ -16,6 +19,16 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-RkJjAmZ++4nc/lLh8g0LxGq2DjZGxQEjFOl8Yzx116A="; + nativeBuildInputs = [ + installShellFiles + scdoc + ]; + + postInstall = '' + scdoc < contrib/man/tuigreet-1.scd > tuigreet.1 + installManPage tuigreet.1 + ''; + meta = { description = "Graphical console greeter for greetd"; homepage = "https://github.com/apognu/tuigreet";