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