depot/third_party/nixpkgs/pkgs/applications/display-managers/greetd/tuigreet.nix

41 lines
933 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
scdoc,
}:
rustPlatform.buildRustPackage rec {
pname = "tuigreet";
version = "0.9.1";
src = fetchFromGitHub {
owner = "apognu";
repo = "tuigreet";
rev = "refs/tags/${version}";
sha256 = "sha256-e0YtpakEaaWdgu+bMr2VFoUc6+SUMFk4hYtSyk5aApY=";
};
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";
changelog = "https://github.com/apognu/tuigreet/releases/tag/${version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ ];
platforms = lib.platforms.linux;
mainProgram = "tuigreet";
};
}