From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: [PATCH] gnu: Add sddm. Date: Sat, 27 Aug 2016 16:00:29 +0200 Message-ID: <20160827140030.13275-2-david@craven.ch> References: <20160827140030.13275-1-david@craven.ch> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdeAI-0003Q0-O4 for guix-devel@gnu.org; Sat, 27 Aug 2016 10:00:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bdeAC-0006FG-T6 for guix-devel@gnu.org; Sat, 27 Aug 2016 10:00:53 -0400 Received: from so254-10.mailgun.net ([198.61.254.10]:48726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdeAB-0006Ep-M7 for guix-devel@gnu.org; Sat, 27 Aug 2016 10:00:48 -0400 In-Reply-To: <20160827140030.13275-1-david@craven.ch> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/hawaii.scm (sddm): New variable. --- gnu/packages/hawaii.scm | 65 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/hawaii.scm b/gnu/packages/hawaii.scm index fbf642b..8c99e5f 100644 --- a/gnu/packages/hawaii.scm +++ b/gnu/packages/hawaii.scm @@ -17,6 +17,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages hawaii) + #:use-module (gnu packages admin) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gl) @@ -34,6 +35,7 @@ #:use-module (gnu packages xorg) #:use-module (guix build-system cmake) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:)) @@ -382,3 +384,66 @@ It contains a Qt platform theme plugin, session manager, QML plugins and a convergent shell for multiple form factors such as desktops, netbooks, phones and tablets.") (license (list license:gpl2+ license:lgpl2.1+)))) + +(define-public sddm + (package + (name "sddm") + (version "0.13.0") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/sddm/sddm" + "/releases/download/v" version "/" + "sddm-" version ".tar.xz")) + (sha256 + (base32 + "0z9lvlb01np9ygdwhy0v4m3cpbfm8bj7jfwzg6nkwy7prjm8r1nx")))) + (build-system cmake-build-system) + (native-inputs + `(("extra-cmake-modules" ,extra-cmake-modules) + ("pkg-config" ,pkg-config) + ("qttools" ,qttools))) + (inputs + `(("glib" ,glib) + ("greenisland" ,greenisland) + ("libxcb" ,libxcb) + ("libxkbcommon" ,libxkbcommon) + ("linux-pam" ,linux-pam) + ("qtbase" ,qtbase) + ("qtdeclarative" ,qtdeclarative) + ("shadow" ,shadow) + ("wayland" ,wayland))) + (arguments + `(#:configure-flags + (list + ;; Currently doesn't do anything + ;; Option added by enable wayland greeters PR + "-DENABLE_WAYLAND=ON" + "-DENABLE_PAM=OFF" + "-DCONFIG_FILE=/etc/sddm.conf" + ;; Set path to /etc/login.defs + ;; Alternatively use -DUID_MIN and -DUID_MAX + (string-append "-DLOGIN_DEFS_PATH=" + (assoc-ref %build-inputs "shadow") + "/etc/login.defs") + (string-append "-DQT_IMPORTS_DIR=" + (assoc-ref %outputs "out") "/qml") + (string-append "-DCMAKE_INSTALL_SYSCONFDIR=" + (assoc-ref %outputs "out") "/etc")) + #:modules ((guix build cmake-build-system) + (guix build qt-utils) + (guix build utils)) + #:imported-modules (,@%cmake-build-system-modules + (guix build qt-utils)) + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-programs + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (wrap-qt-program out "sddm") + (wrap-qt-program out "sddm-greeter") + #t)))))) + (synopsis "QML based X11 and Wayland display manager") + (description "QML based X11 and Wayland display manager.") + (home-page "https://github.com/sddm/sddm") + (license license:gpl2))) -- 2.9.0