summaryrefslogtreecommitdiffstats
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorluc65r <lucas@ransan.tk>2020-10-31 15:44:51 +0100
committerLucas Ransan <lucas@ransan.tk>2021-03-22 10:15:14 +0100
commit90813f399b50465dfd6e186f0a250ff51ac7dce9 (patch)
tree8df7a8ccf7a3caab59a5759e817a847925c99f3e /pkgs/os-specific
parentb1526be944b20e4aac52096ddbc60bdeeb55ce83 (diff)
greetd: init at 0.7.0
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/greetd/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/greetd/default.nix b/pkgs/os-specific/linux/greetd/default.nix
new file mode 100644
index 000000000000..fc5dd04b43c1
--- /dev/null
+++ b/pkgs/os-specific/linux/greetd/default.nix
@@ -0,0 +1,51 @@
+{ rustPlatform
+, lib
+, fetchFromSourcehut
+, pam
+, scdoc
+, installShellFiles
+}:
+
+rustPlatform.buildRustPackage rec {
+ pname = "greetd";
+ version = "0.7.0";
+
+ src = fetchFromSourcehut {
+ owner = "~kennylevinsen";
+ repo = pname;
+ rev = version;
+ sha256 = "b+S3fuJ8gjnSQzLHl3Bs9iO/Un2ynggAplz01GjJvFI=";
+ };
+
+ cargoSha256 = "w6d8rIc03Qa2/TpztpyVijjd3y0Vo38+JDhsOkSFG5E=";
+
+ 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://kl.wtf/projects/greetd/";
+ license = licenses.gpl3Plus;
+ maintainers = with maintainers; [ luc65r ];
+ platforms = platforms.linux;
+ };
+}