gnu: sddm: Update to 0.20.0.
* gnu/packages/display-managers.scm (sddm)[version]: Update to 0.20.0. [source]: Remove snippet and use git-fetch method instead. [arguments]: Use gexp, remove outdate comment and handle /include/qt5 dir of qtdeclarative. Change-Id: I6f6bd80291c36b1b80c9ff7f2154593cea2c9d87 Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>master
parent
f96590fb36
commit
05fad99a43
|
@ -69,25 +69,16 @@
|
||||||
(define-public sddm
|
(define-public sddm
|
||||||
(package
|
(package
|
||||||
(name "sddm")
|
(name "sddm")
|
||||||
(version "0.19.0")
|
(version "0.20.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append
|
(uri (git-reference
|
||||||
"https://github.com/sddm/sddm"
|
(url "https://github.com/sddm/sddm")
|
||||||
"/releases/download/v" version "/"
|
(commit (string-append "v" version))))
|
||||||
"sddm-" version ".tar.xz"))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0hcdysw8ibr66vk8i7v56l0v5ijvhlq67v4460mc2xf2910g2m72"))
|
"1450zv03d3mbid27986p4mdshw9qf3ar8crl4idybf7khxgan22y"))))
|
||||||
(snippet
|
|
||||||
#~(begin
|
|
||||||
;; https://github.com/sddm/sddm/issues/1536
|
|
||||||
;; https://github.com/sddm/sddm/commit/e93bf95c54ad8c2a1604f8d7be05339164b19308
|
|
||||||
;; Commit comes shortly after the 0.19.0 release.
|
|
||||||
(use-modules ((guix build utils)))
|
|
||||||
(substitute* "src/daemon/XorgDisplayServer.cpp"
|
|
||||||
(("m_cookie\\[i\\] = digits\\[dis\\(gen\\)\\]")
|
|
||||||
"m_cookie[i] = QLatin1Char(digits[dis(gen)])"))))))
|
|
||||||
(build-system qt-build-system)
|
(build-system qt-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list extra-cmake-modules pkg-config qttools-5))
|
(list extra-cmake-modules pkg-config qttools-5))
|
||||||
|
@ -109,36 +100,39 @@
|
||||||
shadow
|
shadow
|
||||||
wayland))
|
wayland))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
(list
|
||||||
,#~(list
|
#:configure-flags
|
||||||
;; This option currently does nothing, but will presumably be enabled
|
#~(list
|
||||||
;; if/when <https://github.com/sddm/sddm/pull/616> is merged.
|
"-DENABLE_WAYLAND=ON"
|
||||||
"-DENABLE_WAYLAND=ON"
|
"-DENABLE_PAM=ON"
|
||||||
"-DENABLE_PAM=ON"
|
;; Both flags are required for elogind support.
|
||||||
;; Both flags are required for elogind support.
|
"-DNO_SYSTEMD=ON"
|
||||||
"-DNO_SYSTEMD=ON" "-DUSE_ELOGIND=ON"
|
"-DUSE_ELOGIND=ON"
|
||||||
"-DCONFIG_FILE=/etc/sddm.conf"
|
"-DCONFIG_FILE=/etc/sddm.conf"
|
||||||
;; Set path to /etc/login.defs.
|
;; Set path to /etc/login.defs.
|
||||||
;; An alternative would be to use -DUID_MIN and -DUID_MAX.
|
;; An alternative would be to use -DUID_MIN and -DUID_MAX.
|
||||||
(string-append "-DLOGIN_DEFS_PATH="
|
(string-append "-DLOGIN_DEFS_PATH="
|
||||||
#$(this-package-input "shadow")
|
#$(this-package-input "shadow")
|
||||||
"/etc/login.defs")
|
"/etc/login.defs")
|
||||||
(string-append "-DQT_IMPORTS_DIR="
|
(string-append "-DCMAKE_CXX_FLAGS=-I"
|
||||||
#$output "/lib/qt5/qml")
|
#$(this-package-input
|
||||||
(string-append "-DCMAKE_INSTALL_SYSCONFDIR="
|
"qtdeclarative") "/include/qt5")
|
||||||
#$output "/etc"))
|
(string-append "-DQT_IMPORTS_DIR="
|
||||||
#:phases
|
#$output "/lib/qt5/qml")
|
||||||
(modify-phases %standard-phases
|
(string-append "-DCMAKE_INSTALL_SYSCONFDIR="
|
||||||
(add-after 'unpack 'embed-loginctl-reference
|
#$output "/etc"))
|
||||||
(lambda _
|
#:phases
|
||||||
(substitute* "CMakeLists.txt"
|
#~(modify-phases %standard-phases
|
||||||
(("/usr/bin/loginctl") (which "loginctl")))
|
(add-after 'unpack 'embed-loginctl-reference
|
||||||
#t)))))
|
(lambda _
|
||||||
|
(substitute* "CMakeLists.txt"
|
||||||
|
(("/usr/bin/loginctl")
|
||||||
|
(which "loginctl"))))))))
|
||||||
(synopsis "QML based X11 and Wayland display manager")
|
(synopsis "QML based X11 and Wayland display manager")
|
||||||
(description "SDDM is a display manager for X11 and Wayland aiming to be
|
(description "SDDM is a display manager for X11 and Wayland aiming to be
|
||||||
fast, simple and beautiful. SDDM is themeable and puts no restrictions on the
|
fast, simple and beautiful. SDDM is themeable and puts no restrictions on the
|
||||||
user interface design. It uses QtQuick which gives the designer the ability to
|
user interface design. It uses QtQuick which gives the designer the ability
|
||||||
create smooth, animated user interfaces.")
|
to create smooth, animated user interfaces.")
|
||||||
(home-page "https://github.com/sddm/sddm")
|
(home-page "https://github.com/sddm/sddm")
|
||||||
;; QML files are MIT licensed and images are CC BY 3.0.
|
;; QML files are MIT licensed and images are CC BY 3.0.
|
||||||
(license (list license:gpl2+ license:expat license:cc-by3.0))))
|
(license (list license:gpl2+ license:expat license:cc-by3.0))))
|
||||||
|
|
Reference in New Issue