projects/guix·blob python-team · refs

94 lines · 3.9 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2022 pukkamustard <[email protected]>
3;;; Copyright © 2025 Evgeny Pisemsky <[email protected]>
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 diagram)
21 #:use-module (guix packages)
22 #:use-module (guix build-system gnu)
23 #:use-module (guix download)
24 #:use-module (guix git-download)
25 #:use-module (guix gexp)
26 #:use-module (guix utils)
27 #:use-module ((guix licenses) #:prefix license:))
28
29(define-public pikchr
30 (let ((commit "a7f1c35bc0448daf")
31 (revision "1")) ;increment for each new snapshot
32 (package
33 (name "pikchr")
34 ;; To update, use the last check-in in https://pikchr.org/home/timeline?r=trunk
35 (version (string-append revision "-" (string-take commit 5)))
36 (source (origin
37 (method url-fetch)
38 (uri (string-append "https://pikchr.org/home/tarball/" commit
39 "/pikchr.tar.gz"))
40 (file-name (string-append "pikchr-" version ".tar.gz"))
41 (sha256
42 (base32
43 "06sx7mc6g79i8gvqczl1mlky9z6r23nbpmmlypjziiiv1mmmc9ad"))))
44 (build-system gnu-build-system)
45 (arguments
46 (list #:tests? #f ;no tests
47 #:make-flags #~(list (string-append "CC=" #$(cc-for-target)))
48 #:phases
49 #~(modify-phases %standard-phases
50 (delete 'bootstrap)
51 (delete 'configure)
52 (replace 'install
53 (lambda* (#:key outputs #:allow-other-keys)
54 (let* ((out (assoc-ref outputs "out"))
55 (bin (string-append out "/bin")))
56 (install-file "pikchr" bin)))))))
57 (home-page "https://pikchr.org")
58 (synopsis "Markup language for diagrams in technical documentation")
59 (description
60 "Pikchr (pronounced @emph{picture}) is a PIC-like markup language for
61diagrams in technical documentation. Pikchr is designed to be embedded in
62fenced code blocks of Markdown or similar mechanisms of other documentation
63markup languages.")
64 (license license:bsd-0))))
65
66(define-public dpic
67 (let ((commit "1354b63eb7120e5d0d40855c18d69e413a636ef2")
68 (revision "0"))
69 (package
70 (name "dpic")
71 (version (git-version "2025.08.01" revision commit))
72 (home-page "https://gitlab.com/aplevich/dpic")
73 (source
74 (origin
75 (method git-fetch)
76 (uri (git-reference
77 (url (string-append home-page ".git"))
78 (commit commit)))
79 (file-name (git-file-name name version))
80 (sha256
81 (base32 "00r4dqwmlbpbb7kshprp9n29cmb8vxy345xqpzlba6bnw5vrgpv9"))))
82 (build-system gnu-build-system)
83 (arguments
84 (list
85 #:tests? #f
86 #:make-flags
87 #~(list (string-append "CC=" #$(cc-for-target))
88 (string-append "DESTDIR=" #$output))))
89 (synopsis "Implementation of the pic language")
90 (description
91 "Dpic is an implementation of the pic \"little language\" for creating
92line drawings and illustrations for documents, web pages, and other
93uses.")
94 (license (list license:bsd-2 license:cc-by3.0 license:lppl1.3c)))))