mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
gnu: greetd: Fix cross-compilation.
* gnu/packages/admin.scm (greetd): Fix cross-compilation. [native-inputs]: Move linux-pam from here ... [inputs]: ... to here. [arguments]<#:phases>: Set release directory based on target. Change-Id: I822f8f215677bc951b21e46dddf44954a43df58f Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
af67e6d70c
commit
ddffc370ef
1 changed files with 13 additions and 2 deletions
|
@ -64,6 +64,7 @@
|
||||||
;;; Copyright © 2023 Jaeme Sifat <jaeme@runbox.com>
|
;;; Copyright © 2023 Jaeme Sifat <jaeme@runbox.com>
|
||||||
;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
|
;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
|
||||||
;;; Copyright © 2023 Tomás Ortín Fernández <tomasortin@mailbox.org>
|
;;; Copyright © 2023 Tomás Ortín Fernández <tomasortin@mailbox.org>
|
||||||
|
;;; Copyright © 2024 dan <i@dan.games>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -99,6 +100,7 @@ (define-module (gnu packages admin)
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix platform)
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (gnu packages acl)
|
#:use-module (gnu packages acl)
|
||||||
|
@ -5462,7 +5464,14 @@ (define (scdoc-cmd doc lvl)
|
||||||
(man1 (string-append man "/man1"))
|
(man1 (string-append man "/man1"))
|
||||||
(man5 (string-append man "/man5"))
|
(man5 (string-append man "/man5"))
|
||||||
(man7 (string-append man "/man7"))
|
(man7 (string-append man "/man7"))
|
||||||
(release "target/release")
|
(release ,(if (%current-target-system)
|
||||||
|
(string-append
|
||||||
|
"target/"
|
||||||
|
(platform-rust-target
|
||||||
|
(lookup-platform-by-target
|
||||||
|
(%current-target-system)))
|
||||||
|
"/release")
|
||||||
|
"target/release"))
|
||||||
(greetd-bin (string-append release "/greetd"))
|
(greetd-bin (string-append release "/greetd"))
|
||||||
(agreety-bin (string-append release "/agreety")))
|
(agreety-bin (string-append release "/agreety")))
|
||||||
(install-file greetd-bin sbin)
|
(install-file greetd-bin sbin)
|
||||||
|
@ -5472,8 +5481,10 @@ (define (scdoc-cmd doc lvl)
|
||||||
(install-file "greetd.5" man5)
|
(install-file "greetd.5" man5)
|
||||||
(install-file "greetd-ipc.7" man7)
|
(install-file "greetd-ipc.7" man7)
|
||||||
(install-file "agreety.1" man1))))))))
|
(install-file "agreety.1" man1))))))))
|
||||||
|
(inputs
|
||||||
|
(list linux-pam))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list linux-pam scdoc))
|
(list scdoc))
|
||||||
(synopsis "Minimal and flexible login manager daemon")
|
(synopsis "Minimal and flexible login manager daemon")
|
||||||
(description
|
(description
|
||||||
"greetd is a minimal and flexible login manager daemon
|
"greetd is a minimal and flexible login manager daemon
|
||||||
|
|
Loading…
Reference in a new issue