Commit | Line | Data |
---|---|---|
c5c555b1 | 1 | ;;; GNU Guix --- Functional package management for GNU |
9e771e3b | 2 | ;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org> |
8cba71c7 | 3 | ;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org> |
f214d470 | 4 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
c5c555b1 LC |
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 ratpoison) | |
22 | #:use-module (guix packages) | |
23 | #:use-module (guix download) | |
24 | #:use-module (guix build-system gnu) | |
25 | #:use-module ((guix licenses) #:select (gpl2+)) | |
445c5aba | 26 | #:use-module (gnu packages) |
c5c555b1 LC |
27 | #:use-module (gnu packages xorg) |
28 | #:use-module (gnu packages perl) | |
29 | #:use-module (gnu packages readline) | |
30 | #:use-module (gnu packages pkg-config) | |
31 | #:use-module (gnu packages fontutils)) | |
32 | ||
a7911207 SB |
33 | (define ratpoison.desktop |
34 | (origin | |
35 | (method url-fetch) | |
29408532 | 36 | (uri (string-append "https://sources.gentoo.org/cgi-bin/viewvc.cgi/" |
a7911207 SB |
37 | "gentoo-x86/x11-wm/ratpoison/files/ratpoison.desktop" |
38 | "?revision=1.1")) | |
39 | (file-name "ratpoison.desktop") | |
40 | (sha256 | |
41 | (base32 | |
42 | "1rh3f4c3rhn6q2hmkraam0831xqcqyj3qkqf019ahaxsxaan3553")))) | |
43 | ||
c5c555b1 LC |
44 | (define-public ratpoison |
45 | (package | |
46 | (name "ratpoison") | |
f214d470 | 47 | (version "1.4.9") |
45fed6d3 ML |
48 | (source |
49 | (origin (method url-fetch) | |
c5c555b1 LC |
50 | (uri (string-append "mirror://savannah/ratpoison/ratpoison-" |
51 | version ".tar.xz")) | |
52 | (sha256 | |
53 | (base32 | |
f214d470 | 54 | "1wfir1gvh5h7izgvx2kd1pr2k7wlncd33zq7qi9s9k2y0aza93yr")) |
fc1adab1 | 55 | (patches (search-patches "ratpoison-shell.patch")))) |
c5c555b1 | 56 | (build-system gnu-build-system) |
a7911207 SB |
57 | (arguments |
58 | '(#:phases | |
45fed6d3 ML |
59 | (modify-phases %standard-phases |
60 | (add-after 'install 'install-xsession | |
61 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
62 | (let ((rpd "ratpoison.desktop") | |
63 | (dst (string-append (assoc-ref outputs "out") | |
64 | "/share/xsessions/"))) | |
65 | (mkdir-p dst) | |
66 | (copy-file (assoc-ref inputs rpd) | |
67 | (string-append dst rpd)))))))) | |
c5c555b1 | 68 | (inputs |
45fed6d3 | 69 | `(("inputproto" ,inputproto) |
c5c555b1 | 70 | ("fontconfig" ,fontconfig) |
45fed6d3 | 71 | ("freetype" ,freetype) |
c5c555b1 | 72 | ("libXft" ,libxft) |
45fed6d3 | 73 | ("libXi" ,libxi) |
f214d470 | 74 | ("libxrandr" ,libxrandr) |
c5c555b1 LC |
75 | ("libXpm" ,libxpm) |
76 | ("libXt" ,libxt) | |
45fed6d3 | 77 | ("libXtst" ,libxtst) |
a7911207 | 78 | ("libX11" ,libx11) |
45fed6d3 ML |
79 | ("readline" ,readline) |
80 | ("xextproto" ,xextproto))) | |
c4c4cc05 | 81 | (native-inputs |
c695fb76 | 82 | `(("perl" ,perl) |
45fed6d3 ML |
83 | ("pkg-config" ,pkg-config) |
84 | ("ratpoison.desktop" ,ratpoison.desktop))) | |
340978d7 | 85 | (home-page "https://www.nongnu.org/ratpoison/") |
9e771e3b | 86 | (synopsis "Simple mouse-free tiling window manager") |
c5c555b1 LC |
87 | (description |
88 | "Ratpoison is a simple window manager with no fat library | |
89 | dependencies, no fancy graphics, no window decorations, and no | |
90 | rodent dependence. It is largely modelled after GNU Screen which | |
91 | has done wonders in the virtual terminal market. | |
92 | ||
93 | The screen can be split into non-overlapping frames. All windows | |
94 | are kept maximized inside their frames to take full advantage of | |
95 | your precious screen real estate. | |
96 | ||
97 | All interaction with the window manager is done through keystrokes. | |
98 | Ratpoison has a prefix map to minimize the key clobbering that | |
99 | cripples Emacs and other quality pieces of software.") | |
100 | (license gpl2+))) |