projects/guix·blob python-team · refs

65 lines · 2.6 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2024 Jorge Acereda <[email protected]>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19
20(define-module (gnu packages decker)
21 #:use-module ((guix licenses) #:prefix license:)
22 #:use-module (gnu packages sdl)
23 #:use-module (gnu packages vim)
24 #:use-module (guix build-system gnu)
25 #:use-module (guix gexp)
26 #:use-module (guix utils)
27 #:use-module (guix git-download)
28 #:use-module (guix packages))
29
30(define-public decker
31 (package
32 (name "decker")
33 (version "1.49")
34 (source
35 (origin
36 (method git-fetch)
37 (uri (git-reference
38 (url "https://github.com/JohnEarnest/Decker")
39 (commit (string-append "v" version))))
40 (file-name (git-file-name name version))
41 (sha256
42 (base32 "0hwi62g5wg7zxj98j3civz42za133jq3mz8c0mapqnkn0xnb0qa8"))))
43 (build-system gnu-build-system)
44 (arguments
45 (list
46 #:test-target "test"
47 #:make-flags #~(list (string-append "PREFIX=" #$output)
48 (string-append "COMPILER=" #$(cc-for-target)))
49 #:phases #~(modify-phases %standard-phases
50 (delete 'configure) ;no configure script
51 (replace 'build
52 (lambda* (#:key parallel-build? #:allow-other-keys)
53 (let ((job-count (if parallel-build?
54 (parallel-job-count)
55 1)))
56 (invoke "make" "lilt" "decker"
57 "-j" (number->string job-count))))))))
58 (native-inputs (list xxd))
59 (inputs (list (sdl-union (list sdl2-image sdl2))))
60 (home-page "http://beyondloom.com/decker/")
61 (synopsis "Multimedia sketchpad")
62 (description
63 "Decker is a multimedia platform for creating and sharing interactive
64documents, with sound, images, hypertext, and scripted behavior.")
65 (license license:expat)))