aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/stb.scm
blob: df31bd0f86508ca1ac50ca17bbf6cc37ba4c86e2 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages stb)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system trivial)
  #:use-module ((guix licenses) #:select (expat public-domain)))

(define stb
  ;; stb is a collection of libraries developed within the same repository.
  ;; When updating this, remember to change versions below as appropriate.
  (let ((commit "e6afb9cbae4064da8c3e69af3ff5c4629579c1d2")
        (revision "0"))
    (package
      (name "stb")
      (home-page "https://github.com/nothings/stb")
      (version (git-version "0.0" revision commit))
      (source (origin
                (method git-fetch)
                (uri (git-reference
                      (url home-page)
                      (commit commit)))
                (sha256
                 (base32
                  "079nsn9bnb8c0vfq26g5l53q6gzx19a5x9q2nb55mpcljxsgxnmf"))
                (file-name (git-file-name name version))))
      (build-system gnu-build-system)
      (arguments
       `(#:modules ((ice-9 ftw)
                    (ice-9 regex)
                    (srfi srfi-26)
                    ,@%gnu-build-system-modules)
         #:phases (modify-phases %standard-phases
                    (delete 'configure)
                    (delete 'build)
                    (replace 'check
                      (lambda _
                        (invoke "make" "-C" "tests" "CC=gcc")))
                    (replace 'install
                      (lambda* (#:key outputs #:allow-other-keys)
                        (let ((out (assoc-ref outputs "out"))
                              (files (make-regexp "\\.(c|h|md)$")))
                          (for-each (lambda (file)
                                      (install-file file out))
                                    (scandir "." (cut regexp-exec files <>)))
                          #t))))))
      (synopsis "Single file libraries for C/C++")
      (description
       "This package contains a variety of small independent libraries for
the C programming language.")
      ;; The user can choose either license.
      (license (list expat public-domain)))))

(define (make-stb-header-package name version description)
  (package
    (inherit stb)
    (name name)
    (version version)
    (source #f)
    (inputs `(("stb" ,stb)))
    (build-system trivial-build-system)
    (arguments
     `(#:modules ((guix build utils))
       #:builder (begin
                   (use-modules (guix build utils))
                   (let ((stb (assoc-ref %build-inputs "stb"))
                         (lib (string-join (string-split ,name #\-) "_"))
                         (out (assoc-ref %outputs "out")))
                     (install-file (string-append stb "/" lib ".h")
                                   (string-append out "/include"))
                     #t))))
    (description description)))

;; TODO: These descriptions are not translatable!  They should be
;; converted to macros as outlined in <https://bugs.gnu.org/32155>.
(define-public stb-image
  (make-stb-header-package
   "stb-image" "2.19"
   "stb-image is a small and self-contained library for image loading or
decoding from file or memory.  A variety of formats are supported."))

(define-public stb-image-write
  (make-stb-header-package
   "stb-image-write" "1.09"
   "stb-image-write is a small library for writing image files to the
C@tie{}@code{stdio} interface."))
tooltip'>* gnu/packages/gnome-xyz.scm (gnome-shell-extension-radio): Update to 21. Change-Id: I11aab4c80c96d1237112bb9a089763bd3c331d1a Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-20gnu: gnome-shell-extension-burn-my-windows: Update to 40....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-burn-my-windows): Update to 40. [arguments]: Convert to list of G-Expressions. Change-Id: Ib9551096437aeea0ff56e5e1ea6371ab72d61b02 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-20gnu: gnome-shell-extension-blur-my-shell: Update to 47....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-blur-my-shell): Update to 47. Change-Id: I528579d9bd02361501977cbad6f9e752403ff37e Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-20gnu: Deprecate gnome-shell-extension-hide-app-icon....This extension does not work with GNOME 44, and has not received any work. However, Just Perfection seems to have an option to hide application icons. * gnu/packages/gnome-xyz.scm (gnome-shell-extension-hide-app-icon): Deprecate in favor of gnome-shell-extension-just-perfection. Change-Id: I6af14b6c9e1db7176d9be6bec2b90f77e7db36c1 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-20gnu: gnome-shell-extension-just-perfection: Update to 26.0....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-just-perfection): Update to 26.0. [arguments]: Convert to list of G-Expressions. Change-Id: Ib02ab984310705bfa435ab1ea8d47c74a6162db0 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-20gnu: gnome-shell-extension-gsconnect: Update to 55....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-gsconnect): Update to 55. [arguments]: Convert to list of G-Expressions. [#:configure-flags]: Do not set settings_schemadir nor post_install anymore. [#:phase 'skip-post-installation]: New phase. [inputs]: Drop labels. [native-inputs]: Drop labels. Change-Id: I63933e43815826a8ab91a472ecda235173486dae Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-19gnu: gnome-shell-extensions-customize-ibus: Update to 86....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-customize-ibus): Update to 86. [arguments]: Convert to list of G-Expressions. [native-inputs]: Drop labels. [propagated-inputs]: Add ibus. Change-Id: I48dbc2bd9a8dea7e7a2b161089b433e1d72a8ff1 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-19gnu: gnome-shell-extension-clipboard-indicator: Update to 47....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-clipboard-indicator): Update to 47. [arguments]: Convert to a list of G-Expressions. Change-Id: Ie982a1820dab1f01b2e8198cd6914d1e676865ad Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-19gnu: gnome-shell-extension-appindicator: Update to 53....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-appindicator): Update to 53. Change-Id: Ifc3ae680b8f1d66068ce03e94d991de0d479da4e Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-19gnu: gnome-shell-extension-unite-shell: Update to 72....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-unite-shell): Update to 72. Change-Id: Ie91c004cb0ab3f81d8ad7c4a15bb357d939d8508 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-19gnu: gnome-shell-extension-dash-to-panel: Update to 56....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-dash-to-panel): Update to 56. [arguments]: Convert to list of G-Expressions. [native-inputs]: Add `(,glib "bin"). [propagated-inputs]: Remove `(,glib "bin"). Change-Id: I24a83766b750feb1004bbaf2f5badc9e21f1c30e Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-19gnu: gnome-shell-extension-dash-to-dock: Update to 79....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-dash-to-dock): Update to 79. [arguments]: Convert to list of G-Expressions. [native-inputs]: Drop labels. Change-Id: I327027d8a0ffc2bc7d234fe6517724fd218b947c Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2024-01-14gnu: vala-language-server: Update to 0.48.7....* gnu/packages/gnome-xyz.scm (vala-language-server): Update to 0.48.7. Change-Id: I101091d73f0e26aab5e9fa8eb0dadaa3489f7dc3 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Vivien Kraus 2023-10-09Merge branch 'master' into gnome-teamLiliana Marie Prikler 2023-10-07gnu: Add gnome-shell-extension-night-theme-switcher....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-night-theme-switcher): New variable. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Sergio Pastor Pérez 2023-09-15Merge branch 'master' into gnome-team.Liliana Marie Prikler 2023-09-07Merge branch 'master' into gnome-teamLiliana Marie Prikler 2023-09-06gnu: gcr: Update to 4.0.0....* gnu/packages/gnome.scm (gcr): Update to 4.0.0. (gcr-3): New variable for current version. (libgdata)[propagated-inputs]: Replace gcr with gcr-3. (gnome-keyring)[inputs]: Likewise. (seahorse)[inputs]: Likewise. (gnome-settings-daemon)[inputs]: Likewise. (gvfs)[inputs]: Likewise. (epiphany)[inputs]: Likewise. (gexiv2)[inputs]: Likewise. (shotwell)[inputs]: Likewise. (gnome-online-accounts)[inputs]: Likewise. (evolution-data-server)[inputs]: Likewise. (network-manager-openconnect)[inputs]: Likewise. (network-manager-applet)[inputs]: Likewise. (gnome-shell)[inputs]: Likewise. (evolution)[inputs]: Likewise. (geary)[inputs]: Likewise. * gnu/packages/gnome-xyz.scm (gpaste)[native-inputs]: Likewise. * gnu/packages/gnupg.scm (pinentry-gnome3)[inputs]: Likewise. * gnu/packages/suckless.scm (surf)[inputs]: Likewise. * gnu/packages/web-browsers.scm (midori)[inputs]: Likewise. Liliana Marie Prikler 2023-09-09gnu: portfolio: Update to 1.0.0....* gnu/packages/gnome-xyz.scm (portfolio): Update to 1.0.0. [#:phases]: Add ‘skip-gtk-update-icon-cache’. [inputs]: Replace gtk+ with gtk. Replace libhandy with libadwaita. [native-inputs]: Remove gtk+:bin. Add pkg-config. Liliana Marie Prikler 2023-08-29gnu: Add qogir-icon-theme....* gnu/packages/gnome-xyz.scm (qogir-icon-theme): New variable. Hilton Chain 2023-07-23gnu: gnome-shell-extension-dash-to-panel: Update to 56....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-dash-to-panel): Update to 56. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Giacomo Leidi 2023-07-08gnu: Add gnome-shell-extension-vitals....* gnu/packages/gnome-xyz.scm (gnome-shell-extension-vitals): New variable. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Eidvilas Markevičius