diff options
| author | muradm <mail@muradm.net> | 2022-06-15 12:17:37 +0300 |
|---|---|---|
| committer | Lars-Dominik Braun <ldb@leibniz-psychology.org> | 2022-06-17 10:30:39 +0200 |
| commit | c08d56a161d1308e7c021acec3a57c3f559137de (patch) | |
| tree | 5c677d30d521a2f97bb4cc4a87b5ad1013bc40b2 /gnu | |
| parent | 7943f9f170f099b3cae78cc897d4ac68649d03ee (diff) | |
gnu: admin: Add greetd 0.8.0.
* gnu/packages/admin.scm (greetd): New variable
Signed-off-by: Lars-Dominik Braun <ldb@leibniz-psychology.org>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/admin.scm | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index f08f3897625..24b141dccfd 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm | |||
| @@ -45,6 +45,7 @@ | |||
| 45 | ;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re> | 45 | ;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re> |
| 46 | ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> | 46 | ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
| 47 | ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> | 47 | ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> |
| 48 | ;;; Copyright © 2021 muradm <mail@muradm.net> | ||
| 48 | ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com> | 49 | ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com> |
| 49 | ;;; Copyright © 2021 Artyom V. Poptsov <poptsov.artyom@gmail.com> | 50 | ;;; Copyright © 2021 Artyom V. Poptsov <poptsov.artyom@gmail.com> |
| 50 | ;;; Copyright © 2022 Wamm K. D. <jaft.r@outlook.com> | 51 | ;;; Copyright © 2022 Wamm K. D. <jaft.r@outlook.com> |
| @@ -66,6 +67,7 @@ | |||
| 66 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | 67 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 67 | 68 | ||
| 68 | (define-module (gnu packages admin) | 69 | (define-module (gnu packages admin) |
| 70 | #:use-module (guix build-system cargo) | ||
| 69 | #:use-module (guix build-system cmake) | 71 | #:use-module (guix build-system cmake) |
| 70 | #:use-module (guix build-system emacs) | 72 | #:use-module (guix build-system emacs) |
| 71 | #:use-module (guix build-system glib-or-gtk) | 73 | #:use-module (guix build-system glib-or-gtk) |
| @@ -93,6 +95,7 @@ | |||
| 93 | #:use-module (gnu packages c) | 95 | #:use-module (gnu packages c) |
| 94 | #:use-module (gnu packages check) | 96 | #:use-module (gnu packages check) |
| 95 | #:use-module (gnu packages compression) | 97 | #:use-module (gnu packages compression) |
| 98 | #:use-module (gnu packages crates-io) | ||
| 96 | #:use-module (gnu packages cross-base) | 99 | #:use-module (gnu packages cross-base) |
| 97 | #:use-module (gnu packages crypto) | 100 | #:use-module (gnu packages crypto) |
| 98 | #:use-module (gnu packages cryptsetup) | 101 | #:use-module (gnu packages cryptsetup) |
| @@ -5058,4 +5061,78 @@ it won't take longer to install 15 machines than it would to install just 2.") | |||
| 5058 | (home-page "https://www.udpcast.linux.lu") | 5061 | (home-page "https://www.udpcast.linux.lu") |
| 5059 | (license license:gpl2+))) | 5062 | (license license:gpl2+))) |
| 5060 | 5063 | ||
| 5064 | (define-public greetd | ||
| 5065 | (package | ||
| 5066 | (name "greetd") | ||
| 5067 | (version "0.8.0") | ||
| 5068 | (home-page "https://git.sr.ht/~kennylevinsen/greetd") | ||
| 5069 | (source (origin | ||
| 5070 | (method git-fetch) | ||
| 5071 | (uri (git-reference | ||
| 5072 | (url home-page) | ||
| 5073 | (commit version))) | ||
| 5074 | (file-name (git-file-name name version)) | ||
| 5075 | (sha256 | ||
| 5076 | (base32 "0x5c3jkw09kvj2grcxm899y2n6ws8p990cyp9cs0fy6lm4fzlh6v")))) | ||
| 5077 | (build-system cargo-build-system) | ||
| 5078 | (arguments | ||
| 5079 | `(#:cargo-inputs | ||
| 5080 | (("rust-nix" ,rust-nix-0.19) | ||
| 5081 | ("rust-pam-sys" ,rust-pam-sys-0.5) | ||
| 5082 | ("rust-rpassword" ,rust-rpassword-5) | ||
| 5083 | ("rust-users" ,rust-users-0.11) | ||
| 5084 | ("rust-serde" ,rust-serde-1) | ||
| 5085 | ("rust-serde-json" ,rust-serde-json-1) | ||
| 5086 | ("rust-libc" ,rust-libc-0.2) | ||
| 5087 | ("rust-tokio" ,rust-tokio-1) | ||
| 5088 | ("rust-getopts" ,rust-getopts-0.2) | ||
| 5089 | ("rust-thiserror" ,rust-thiserror-1) | ||
| 5090 | ("rust-async-trait" ,rust-async-trait-0.1) | ||
| 5091 | ("rust-enquote" ,rust-enquote-1)) | ||
| 5092 | #:phases | ||
| 5093 | (modify-phases %standard-phases | ||
| 5094 | (delete 'package) | ||
| 5095 | (add-after 'build 'build-man-pages | ||
| 5096 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 5097 | (define (scdoc-cmd doc lvl) | ||
| 5098 | (system (string-append "scdoc < " | ||
| 5099 | doc "-" lvl ".scd > " | ||
| 5100 | doc "." lvl))) | ||
| 5101 | (with-directory-excursion "man" | ||
| 5102 | (scdoc-cmd "greetd" "1") | ||
| 5103 | (scdoc-cmd "greetd" "5") | ||
| 5104 | (scdoc-cmd "greetd-ipc" "7") | ||
| 5105 | (scdoc-cmd "agreety" "1")))) | ||
| 5106 | (replace 'install | ||
| 5107 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
| 5108 | (let* ((out (assoc-ref outputs "out")) | ||
| 5109 | (bin (string-append out "/bin")) | ||
| 5110 | (sbin (string-append out "/sbin")) | ||
| 5111 | (share (string-append out "/share")) | ||
| 5112 | (man (string-append share "/man")) | ||
| 5113 | (man1 (string-append man "/man1")) | ||
| 5114 | (man5 (string-append man "/man5")) | ||
| 5115 | (man7 (string-append man "/man7")) | ||
| 5116 | (release "target/release") | ||
| 5117 | (greetd-bin (string-append release "/greetd")) | ||
| 5118 | (agreety-bin (string-append release "/agreety"))) | ||
| 5119 | (install-file greetd-bin sbin) | ||
| 5120 | (install-file agreety-bin bin) | ||
| 5121 | (with-directory-excursion "man" | ||
| 5122 | (install-file "greetd.1" man1) | ||
| 5123 | (install-file "greetd.5" man5) | ||
| 5124 | (install-file "greetd-ipc.7" man7) | ||
| 5125 | (install-file "agreety.1" man1)))))))) | ||
| 5126 | (native-inputs | ||
| 5127 | `(("linux-pam" ,linux-pam) | ||
| 5128 | ("scdoc" ,scdoc))) | ||
| 5129 | (synopsis "minimal and flexible login manager daemon") | ||
| 5130 | (description | ||
| 5131 | "greetd is a minimal and flexible login manager daemon | ||
| 5132 | that makes no assumptions about what you want to launch. | ||
| 5061 | 5133 | ||
| 5134 | If you can run it from your shell in a TTY, greetd can start it. | ||
| 5135 | |||
| 5136 | If it can be taught to speak a simple JSON-based IPC protocol, | ||
| 5137 | then it can be a greeter.") | ||
| 5138 | (license license:gpl3+))) | ||
