projects/guix·blob python-team · refs

402 lines · 15.4 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Ludovic Courtès <[email protected]>
3;;; Copyright © 2016, 2017 Kei Kebreau <[email protected]>
4;;; Copyright © 2018 Tobias Geerinckx-Rice <[email protected]>
5;;; Copyright © 2018 Ricardo Wurmus <[email protected]>
6;;; Copyright © 2022, 2025 Zhu Zihao <[email protected]>
7;;;
8;;; This file is part of GNU Guix.
9;;;
10;;; GNU Guix is free software; you can redistribute it and/or modify it
11;;; under the terms of the GNU General Public License as published by
12;;; the Free Software Foundation; either version 3 of the License, or (at
13;;; your option) any later version.
14;;;
15;;; GNU Guix is distributed in the hope that it will be useful, but
16;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;;; GNU General Public License for more details.
19;;;
20;;; You should have received a copy of the GNU General Public License
21;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22
23(define-module (gnu packages gnustep)
24 #:use-module (guix download)
25 #:use-module (guix git-download)
26 #:use-module (guix gexp)
27 #:use-module (guix packages)
28 #:use-module (guix build-system gnu)
29 #:use-module (guix build-system cmake)
30 #:use-module ((guix licenses) #:prefix license:)
31 #:use-module (gnu packages)
32 #:use-module (gnu packages base)
33 #:use-module (gnu packages bash)
34 #:use-module (gnu packages datastructures)
35 #:use-module (gnu packages xorg)
36 #:use-module (gnu packages libffcall)
37 #:use-module (gnu packages gcc)
38 #:use-module (gnu packages gnome)
39 #:use-module (gnu packages gtk)
40 #:use-module (gnu packages linux)
41 #:use-module (gnu packages llvm)
42 #:use-module (gnu packages texinfo)
43 #:use-module (gnu packages autotools)
44 #:use-module (gnu packages glib)
45 #:use-module (gnu packages fontutils)
46 #:use-module (gnu packages image)
47 #:use-module (gnu packages pkg-config)
48 #:use-module (gnu packages xml)
49 #:use-module (ice-9 match))
50
51(define-public fsviewer
52 (package
53 (name "fsviewer")
54 (version "0.2.7")
55 (source
56 (origin
57 (method git-fetch)
58 (uri (git-reference
59 (url "https://github.com/roblillack/fsviewer")
60 (commit (string-append "v" version))))
61 (sha256
62 (base32
63 "067fvbq7b4lbnn1flmwf8lm0vq4n6qz5yz6hhab30l4gksfk51cg"))
64 (file-name (git-file-name name version))))
65 (build-system cmake-build-system)
66 (arguments (list #:tests? #f)) ;no tests
67 (inputs
68 (list windowmaker libxmu libxpm))
69 (native-inputs
70 (list pkg-config))
71 (home-page "https://github.com/roblillack/fsviewer")
72 (synopsis "File viewer for Window Maker")
73 (description "FSViewer is a NeXT FileViewer lookalike for Window
74Maker supporting browser mode and list mode. This version is a fork of
75FSViewer.app originally written by George Clernon (1998-99) and later
76maintained by Guido Scholz (2002-07).")
77 (license license:gpl2)))
78
79(define-public gnustep-make
80 (package
81 (name "gnustep-make")
82 (version "2.7.0")
83 (source (origin
84 (method url-fetch)
85 (uri (string-append "ftp://ftp.gnustep.org/pub/gnustep/core/"
86 name "-" version ".tar.gz"))
87 (sha256
88 (base32
89 "1khiygfkz0zhh9b5nybn40g0xnnjxchk24n49hff1bwanszir84h"))))
90 (build-system gnu-build-system)
91 (arguments
92 '(#:tests? #f)) ; no check target
93 (native-inputs
94 (list which))
95 (home-page "http://gnustep.org")
96 (synopsis "GNUstep make package")
97 (description "The makefile package is a simple, powerful and extensible way
98to write makefiles for a GNUstep-based project. It allows the user to write a
99project without having to deal with the complex issues associated with
100configuration, building, installation, and packaging. It also allows the user
101to easily create cross-compiled binaries.")
102 (license license:gpl3+)))
103
104(define-public libobjc2
105 (package
106 (name "libobjc2")
107 (version "2.3")
108 (source (origin
109 (method git-fetch)
110 (uri (git-reference
111 (url "https://github.com/gnustep/libobjc2")
112 (commit (string-append "v" version))))
113 (sha256
114 (base32
115 "0790mxwq1na5gm5czi3phw384r44lfckb7wcp1hx1hjyksmg1c0b"))
116 (file-name (git-file-name name version))
117 (patches
118 (search-patches "libobjc2-clang22.patch"))))
119 (build-system cmake-build-system)
120 (arguments
121 (list
122 ;; NOTE: Though the issue of GCC cannot compile ObjC code described
123 ;; in https://issues.guix.gnu.org/29644 is fixed.
124 ;; But libobjc2 says it 'strongly recommended that you compile with clang'
125 #:configure-flags #~(list "-DCMAKE_C_COMPILER=clang"
126 "-DCMAKE_CXX_COMPILER=clang++"
127 "-DTESTS=ON")))
128 (native-inputs
129 (list clang))
130 (inputs
131 (list robin-map))
132 (home-page "https://www.gnustep.org/")
133 (synopsis "Objective-C runtime library for Clang")
134 (description "Libobjc2 is an Objective-C runtime library designed as a
135drop-in replacement for GCC runtime. It supports following features beyond
136GCC runtime.
137
138@itemize
139@item Modern Objective-C runtime APIs.
140@item Blocks (Closures).
141@item Synthesised property accessors.
142@item Efficient support for @code{@@synchronized()}.
143@item Type-dependent dispatch.
144@item Associated reference API.
145@item Automatic Reference Counting.
146@end itemize")
147 (license license:expat)))
148
149(define-public windowmaker
150 (package
151 (name "windowmaker")
152 (version "0.96.0")
153 (synopsis "NeXTSTEP-like window manager")
154 (source (origin
155 (method url-fetch)
156 (uri (string-append
157 "https://github.com/window-maker/wmaker/releases/download/"
158 "wmaker-" version "/WindowMaker-" version ".tar.gz"))
159 (sha256
160 (base32
161 "0vbgjbqnv2gcpimnrh2fc383gxcdfhgz1j3f2lfa4jng4fx31qag"))))
162 (build-system gnu-build-system)
163 (arguments
164 (list
165 #:modules '((guix build gnu-build-system)
166 (guix build utils)
167 (ice-9 match))
168 #:phases
169 #~(modify-phases %standard-phases
170 (add-before 'configure 'pre-configure
171 (lambda _
172 ;; 'wmaker' wants to invoke 'wmaker.inst' the first time,
173 ;; and the 'wmsetbg', so make sure it uses the right ones.
174 ;; We can't use a wrapper here because that would pollute
175 ;; $PATH in the whole session.
176 (let* ((bin (string-append #$output "/bin")))
177 (substitute* "src/main.c"
178 (("\"wmaker\\.inst")
179 (string-append "\"" bin "/wmaker.inst")))
180 (substitute* '("src/defaults.c" "WPrefs.app/Menu.c")
181 (("\"wmsetbg")
182 (string-append "\"" bin "/wmsetbg")))
183 ;; Add enough cells to the command character array to
184 ;; allow passing our large path to the wmsetbg binary.
185 ;; The path to wmsetbg in Guix requires 67 extra characters.
186 (substitute* "src/defaults.c"
187 (("len = strlen\\(text\\) \\+ 40;")
188 (string-append "len = strlen(text) + 107;"))))))
189 (add-after 'install 'install-xsession
190 (lambda _
191 (let* ((xsessions (string-append #$output "/share/xsessions")))
192 (mkdir-p xsessions)
193 (call-with-output-file
194 (string-append xsessions "/windowmaker.desktop")
195 (lambda (port)
196 (format port "~
197 [Desktop Entry]~@
198 Name=Window Maker~@
199 Comment=~a~@
200 Exec=~a/bin/wmaker~@
201 Type=Application~%"
202 (string-map (match-lambda
203 (#\newline #\space)
204 (chr chr))
205 #$synopsis) #$output))))))
206 (add-after 'install-xsession 'wrap
207 (lambda _
208 (let* ((bin (string-append #$output "/bin")))
209 ;; In turn, 'wmaker.inst' wants to invoke 'wmmenugen'
210 ;; etc., so make sure everything is in $PATH.
211 (wrap-program (string-append bin "/wmaker.inst")
212 `("PATH" ":" prefix (,bin)))))))))
213 (inputs
214 (list bash-minimal ;for wrap-program
215 fontconfig
216 giflib
217 libjpeg-turbo
218 libpng
219 libtiff
220 libx11
221 libxft
222 libxinerama
223 libxmu))
224 (native-inputs
225 (list pkg-config))
226 (home-page "https://windowmaker.org/")
227 (description
228 "Window Maker is an X11 window manager originally designed to provide
229integration support for the GNUstep Desktop Environment. In every way
230possible, it reproduces the elegant look and feel of the NeXTSTEP user
231interface. It is fast, feature rich, easy to configure, and easy to use.")
232
233 ;; Artwork is distributed under the WTFPL.
234 (license license:gpl2+)))
235
236(define-public wmbattery
237 (package
238 (name "wmbattery")
239 (version "2.54")
240 (source (origin
241 (method url-fetch)
242 (uri (string-append
243 "mirror://debian/pool/main/w/wmbattery/wmbattery_"
244 version ".orig.tar.gz"))
245 (sha256
246 (base32
247 "1r4n58mwkm69y1pjs7l64hg8r1lpndrzyrfl2rdgd4zi6v0jhyyw"))))
248 (build-system gnu-build-system)
249 (arguments '(#:tests? #f)) ; no "check" target
250 (inputs
251 (list glib libx11 libxext libxpm upower))
252 (native-inputs
253 (list pkg-config))
254 (home-page "https://www.dockapps.net/wmbattery")
255 (synopsis "Display laptop battery info")
256 (description
257 "Wmbattery displays the status of your laptop's battery in a small icon.
258This includes if it is plugged in, if the battery is charging, how many minutes
259of battery life remain, battery life remaining (with both a percentage and a
260graph), and battery status (high - green, low - yellow, or critical - red).")
261 (license license:gpl2)))
262
263(define-public wmnd
264 (package
265 (name "wmnd")
266 (version "0.4.18")
267 (source (origin
268 (method url-fetch)
269 (uri (string-append
270 "http://www.thregr.org/~wavexx/software/wmnd/releases/"
271 name "-" version ".tar.gz"))
272 (sha256
273 (base32
274 "01s37d8cfpncza1mlw13ar4rcwbrc1vgaj3ifhglmlcnzvvayg0n"))))
275 (build-system gnu-build-system)
276 (inputs
277 (list libx11 libxext libxpm))
278 (native-inputs
279 (list pkg-config))
280 (home-page "https://www.thregr.org/~wavexx/software/wmnd/")
281 (synopsis "Network interface monitor")
282 (description
283 "WMND is a dockapp for monitoring network interfaces under WindowMaker and
284other compatible window managers.")
285 (license license:gpl2+)))
286
287(define-public wmcpuload
288 (package
289 (name "wmcpuload")
290 (version "1.1.1")
291 (source (origin
292 (method url-fetch)
293 (uri (string-append
294 "mirror://debian/pool/main/w/wmcpuload/"
295 name "_" version ".orig.tar.gz"))
296 (sha256
297 (base32
298 "1334y0axnxydwv05d172f405iljrfakg4kcyg9kmn46v6ywv424g"))))
299 (build-system gnu-build-system)
300 (inputs
301 (list libx11 libxext libxpm))
302 (native-inputs
303 (list pkg-config))
304 (home-page "https://www.dockapps.net/wmcpuload")
305 (synopsis "Monitor CPU usage")
306 (description
307 "Wmcpuload displays the current CPU usage, expressed as a percentile and a
308chart, and has an LCD look-alike user interface. The back-light may be turned
309on and off by clicking the mouse button over the application. If the CPU usage
310hits a certain threshold, an alarm-mode will alert you by turning back-light
311on.")
312 (license license:gpl2+)))
313
314(define-public wmclock
315 (package
316 (name "wmclock")
317 (version "1.0.16")
318 (source (origin
319 (method url-fetch)
320 (uri (string-append
321 "mirror://debian/pool/main/w/wmclock/"
322 name "_" version ".orig.tar.gz"))
323 (sha256
324 (base32
325 "1lx276ba8r2yydhmwj1g586jdqg695ad89ng36fr3mb067gvb2rz"))))
326 (build-system gnu-build-system)
327 (inputs
328 (list libx11 libxext libxpm))
329 ;; wmclock requires autoreconf to generate its configure script.
330 (native-inputs
331 (list autoconf automake pkg-config))
332 (home-page "https://www.dockapps.net/wmclock")
333 (synopsis "Display the date and time")
334 (description
335 "wmclock is an applet for Window Maker which displays the date and time in
336a dockable tile. It features multiple language support, 24h or 12h time
337display, and can run a user-specified program on mouse click.")
338 (license license:gpl2+)))
339
340(define-public wmfire
341 (package
342 (name "wmfire")
343 (version "1.2.4")
344 (source (origin
345 (method url-fetch)
346 (uri (string-append "https://www.improbability.net/"
347 name "/" name "-" version ".tar.gz"))
348 (sha256
349 (base32
350 "101grahd80n97y2dczb629clmcgiavdpbbwy78kk5wgs362m12z3"))
351 (patches
352 (search-patches "wmfire-dont-inline-draw-fire.patch"
353 "wmfire-update-for-new-gdk-versions.patch"))))
354 (build-system gnu-build-system)
355 (inputs
356 (list gtk+-2 libgtop))
357 (native-inputs
358 (list pkg-config))
359 (home-page "https://www.improbability.net/")
360 (synopsis "Display flames to represent resource usage")
361 (description
362 "wmfire is an applet for Window Maker that can monitor the average cpu
363load, or individual cpu load on SMP computers. Additionally it can monitor the
364memory, network load, a file or just be set to show a pretty flame. On
365entering the dock a burning spot replaces the cursor, and after two seconds
366symbols to represent the current monitor are \"burnt\" onscreen. The flame
367colour can also be changed.")
368 (license license:gpl2+)))
369
370(define-public wmamixer
371 (package
372 (name "wmamixer")
373 (version "1.0")
374 (source (origin
375 (method git-fetch)
376 (uri (git-reference
377 (url "https://github.com/gryf/wmamixer")
378 (commit version)))
379 (file-name (git-file-name name version))
380 (sha256
381 (base32
382 "04vv4kr4mj1nwri6zqgdg4yzbbmmng73qd4h0azliril75m7sldf"))))
383 (inputs (list libx11 libxpm libxext alsa-lib))
384 (build-system gnu-build-system)
385 (arguments
386 (list #:phases #~(modify-phases %standard-phases
387 (delete 'configure)
388 (delete 'check)
389 (replace 'install
390 (lambda* (#:key inputs outputs #:allow-other-keys)
391 (let* ((out (assoc-ref outputs "out"))
392 (bin (string-append out "/bin")))
393 (install-file "wmamixer" bin)))))))
394 (synopsis "Window maker applet to display the current volume")
395 (description
396 "wmamixer is an applet for window maker which displays the
397current volume level both numerically and visiaully with a volume bar. It
398includes the ability to toggle through different outputs to show their
399respective volume level.")
400 (home-page "https://github.com/gryf/wmamixer")
401 (license license:gpl2+)))
402