gnu: brlaser: Update to 6.
[jackhill/guix/guix.git] / gnu / packages / fvwm.scm
CommitLineData
c1b0c7d9
SB
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
fd02719c 3;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
47956fa0 4;;; Copyright © 2017 ng0 <ng0@n0.is>
373b3c28 5;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
c1b0c7d9
SB
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
22(define-module (gnu packages fvwm)
23 #:use-module ((guix licenses) #:select (gpl2+))
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module (guix build-system gnu)
27 #:use-module (gnu packages fribidi)
28 #:use-module (gnu packages gnome)
29 #:use-module (gnu packages image)
30 #:use-module (gnu packages perl)
31 #:use-module (gnu packages pkg-config)
32 #:use-module (gnu packages readline)
33 #:use-module (gnu packages xml)
34 #:use-module (gnu packages xorg))
35
36(define-public fvwm
37 (package
38 (name "fvwm")
d8ba3987 39 (version "2.6.9")
c1b0c7d9
SB
40 (source (origin
41 (method url-fetch)
42 (uri (string-append
fd02719c 43 "https://github.com/fvwmorg/fvwm/releases/download/"
373b3c28 44 version "/fvwm-" version ".tar.gz"))
c1b0c7d9
SB
45 (sha256
46 (base32
d8ba3987 47 "1bliqcnap7vb3m2rn8wvxyfhbf35h9x34s41fl4301yhrkrlrihv"))))
c1b0c7d9 48 (build-system gnu-build-system)
c217df91 49 (arguments
50 `(#:phases
51 (modify-phases %standard-phases
52 (add-after 'install 'install-xsession
53 (lambda* (#:key outputs #:allow-other-keys)
54 (let* ((out (assoc-ref outputs "out"))
55 (xsessions (string-append out "/share/xsessions")))
56 (mkdir-p xsessions)
57 (with-output-to-file
58 (string-append xsessions "/fvwm2.desktop")
59 (lambda _
60 (format #t
61 "[Desktop Entry]~@
62 Name=FVWM~@
63 Comment=FVWM~@
64 Exec=~a/bin/fvwm~@
65 TryExec=~@*~a/bin/fvwm~@
66 Icon=~@
67 Type=Application~%"
68 out))))
69 #t)))))
c1b0c7d9
SB
70 (native-inputs
71 `(("perl" ,perl)
72 ("pkg-config" ,pkg-config)
73 ("xsltproc" ,libxslt)))
74 (inputs
75 `(("fribidi" ,fribidi)
76 ("libpng" ,libpng)
77 ("librsvg" ,librsvg)
78 ("libxcursor" ,libxcursor)
79 ("libxext" ,libxext)
80 ("libxft" ,libxft)
81 ("libxinerama" ,libxinerama)
82 ("libxpm" ,libxpm)
83 ("libxt" ,libxt)
84 ("readline" ,readline)))
85 (synopsis "Virtual window manager for X11")
86 (description
87 "FVWM is an extremely powerful ICCCM-compliant multiple virtual desktop
88window manager for the X Window system.")
89 (home-page "http://www.fvwm.org/")
90 (license gpl2+)))