greetd.tuigreet: add man page

This commit is contained in:
Ali Rizvi 2024-10-16 21:49:51 -04:00
parent e3543c8367
commit fc6f12b978
No known key found for this signature in database
GPG Key ID: 5D78E942A4F28228

View File

@ -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";