mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ rustPlatform
|
|
, lib
|
|
, fetchFromSourcehut
|
|
, pam
|
|
, scdoc
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "greetd";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~kennylevinsen";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-w68iKabVVIHB+ujCd5q+L4T6+Tfqedou3wXOuMGi6aw=";
|
|
};
|
|
|
|
cargoHash = "sha256-vn1ih4YXsltR1zdy7BzS3CSJO9Uewx/654lRTSkWV0k=";
|
|
|
|
nativeBuildInputs = [
|
|
scdoc
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs = [
|
|
pam
|
|
];
|
|
|
|
postInstall = ''
|
|
for f in man/*; do
|
|
scdoc < "$f" > "$(sed 's/-\([0-9]\)\.scd$/.\1/' <<< "$f")"
|
|
rm "$f"
|
|
done
|
|
installManPage man/*
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Minimal and flexible login manager daemon";
|
|
longDescription = ''
|
|
greetd is a minimal and flexible login manager daemon
|
|
that makes no assumptions about what you want to launch.
|
|
Comes with agreety, a simple, text-based greeter.
|
|
'';
|
|
homepage = "https://sr.ht/~kennylevinsen/greetd/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ luc65r ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|