linux-initrd: Add USB kernel modules to the default initrd.
[jackhill/guix/guix.git] / gnu / packages / slim.scm
CommitLineData
4aa0891c 1;;; GNU Guix --- Functional package management for GNU
822efdff 2;;; Copyright © 2013 Joshua Grant <tadni@riseup.net>
16686a90 3;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
06ed5982 4;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
4aa0891c
JG
5;;;
6;;; This file is part of GNU Guix.
7;;;
8;;; GNU Guix is free software; you can redistribute it and/or modify it
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
13;;; GNU Guix is distributed in the hope that it will be useful, but
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20
21(define-module (gnu packages slim)
b5b73a82 22 #:use-module ((guix licenses) #:prefix l:)
4aa0891c
JG
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system cmake)
26 #:use-module (guix packages)
16686a90 27 #:use-module (gnu packages)
4aa0891c
JG
28 #:use-module (gnu packages gl)
29 #:use-module (gnu packages xorg)
e55354b8 30 #:use-module (gnu packages image)
4aa0891c
JG
31 #:use-module (gnu packages fontutils)
32 #:use-module (gnu packages pkg-config)
33 #:use-module (gnu packages linux))
34
35(define-public slim
36 (package
37 (name "slim")
16686a90 38 (version "1.3.6")
4aa0891c
JG
39 (source (origin
40 (method url-fetch)
d8c19441
LC
41 ;; Used to be available from download.berlios.de.
42 (uri (string-append
43 "mirror://sourceforge/project/slim.berlios/slim-"
44 version ".tar.gz"))
4aa0891c 45 (sha256
16686a90
LC
46 (base32 "1pqhk22jb4aja4hkrm7rjgbgzjyh7i4zswdgf5nw862l2znzxpi1"))
47 (patches (map search-patch
f9ec07a9
LC
48 (list "slim-config.patch" "slim-session.patch"
49 "slim-sigusr1.patch")))))
4aa0891c
JG
50 (build-system cmake-build-system)
51 (inputs `(("linux-pam" ,linux-pam)
52 ("libpng" ,libpng)
53 ("libjpeg" ,libjpeg)
54 ("freeglut" ,freeglut)
55 ("libxrandr" ,libxrandr)
56 ("libxrender" ,libxrender)
57 ("freetype" ,freetype)
58 ("fontconfig" ,fontconfig)
c4c4cc05 59 ("libx11" ,libx11)
4aa0891c
JG
60 ("libxft" ,libxft)
61 ("libxmu" ,libxmu)
62 ("xauth" ,xauth)))
c4c4cc05
JD
63 (native-inputs
64 `(("pkg-config" ,pkg-config)))
4aa0891c
JG
65 (arguments
66 '(#:phases (alist-cons-before
67 'configure 'set-new-etc-location
68 (lambda _
69 (substitute* "CMakeLists.txt"
70 (("/etc")
16686a90
LC
71 (string-append (assoc-ref %outputs "out") "/etc"))
72 (("install.*systemd.*")
73 ;; The build system's logic here is: if "Linux", then
74 ;; "systemd". Strip that.
75 "")))
4aa0891c 76 %standard-phases)
06ed5982
AE
77 #:configure-flags '("-DUSE_PAM=yes"
78 "-DUSE_CONSOLEKIT=no")
4aa0891c 79 #:tests? #f))
d8c19441
LC
80
81 ;; This used to be at <http://slim.berlios.de/>.
82 (home-page "http://sourceforge.net/projects/slim.berlios/")
ae133b89 83 (synopsis "Desktop-independent graphical login manager for X11")
4aa0891c
JG
84 (description
85 "SLiM is a Desktop-independent graphical login manager for X11, derived
ae133b89
EB
86from Login.app. It aims to be light and simple, although completely
87configurable through themes and an option file; is suitable for machines on
88which remote login functionalities are not needed.
4aa0891c 89
ae133b89
EB
90Features included: PNG and XFT support for alpha transparency and antialiased
91fonts, External themes support, Configurable runtime options: X server --
92login / shutdown / reboot commands, Single (GDM-like) or double (XDM-like)
93input control, Can load predefined user at startup, Configurable welcome /
94shutdown messages, Random theme selection")
4aa0891c 95 (license l:gpl2)))