2020-10-31 15:44:51 +01:00
|
|
|
{ rustPlatform
|
|
|
|
, lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, pam
|
|
|
|
, scdoc
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "greetd";
|
2021-12-14 05:31:30 +01:00
|
|
|
version = "0.8.0";
|
2020-10-31 15:44:51 +01:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~kennylevinsen";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-14 05:31:30 +01:00
|
|
|
sha256 = "sha256-20D6HanUeAc0S9czkNJFmhsrfEqodpafkHsmwKccrHQ=";
|
2020-10-31 15:44:51 +01:00
|
|
|
};
|
|
|
|
|
2021-12-14 05:31:30 +01:00
|
|
|
cargoHash = "sha256-8nMQ81Y0DnPs9WmxNASlcjTEVw5lh+nZtZ7vmmBCu2g=";
|
2020-10-31 15:44:51 +01:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2022-02-06 13:16:57 +01:00
|
|
|
homepage = "https://sr.ht/~kennylevinsen/greetd/";
|
2020-10-31 15:44:51 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ luc65r ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|