summaryrefslogtreecommitdiff
path: root/sigils/packages/upstream.scm
blob: 300a5ba64159c23f237bcb07e757eb3ad7da484d (plain) (blame)
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
;; These are all the packages that are already sent in the Guix upstream tree and waiting approval.
;; It should take only the next 300 years to merge them all.

(define-module (sigils packages upstream)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (guix gexp)
  #:use-module ((guix licenses)
                #:prefix license:)
  ;; lnav
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages autotools)
  #:use-module (gnu packages base)
  #:use-module (gnu packages curl)
  #:use-module (gnu packages sqlite)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages backup)
  #:use-module (gnu packages pcre)
  #:use-module (gnu packages readline)
  #:use-module (gnu packages ncurses)
  #:use-module (gnu packages networking)
  #:use-module (gnu packages rust)
  #:use-module (gnu packages perl)
  ;; ncpamixer
  #:use-module (guix build-system cmake)
  #:use-module (gnu packages pulseaudio)
  ;; mimeo
  #:use-module (guix build-system python)
  #:use-module (gnu packages file)
  #:use-module (gnu packages freedesktop)
  ;; sdbus
  #:use-module (gnu packages glib)
  ;; pyopengl
  #:use-module (gnu packages gl)
  #:use-module ((gnu packages python-xyz)
                #:hide (python-pyopengl
                        python-pyopengl-accelerate))
  ;; udis86
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages python))

(define-public mimeo
  (package
    (name "mimeo")
    (version "2023")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "https://xyne.dev/projects/mimeo/src/mimeo-"
                           version ".tar.xz"))
       (sha256
        (base32 "1459kvnf96bvxxf5r8lg2lldm5ymfbdpdlriaj3mcivh595nza09"))))
    (build-system python-build-system)
    (home-page "https://xyne.dev/projects/mimeo/")
    (synopsis
     "Open files by MIME-type or file name using regular expressions.")
    (description
     "Mimeo uses MIME-type file associations to determine which
application should be used to open a file. It can launch files or print
information such as the command that it would use, the detected MIME-type, etc.")
    (native-inputs (list file python-pyxdg))
    (license license:gpl3)))

(define-public ncpamixer
  (package
   (name "ncpamixer")
   (version "1.3.7")
   (source
    (origin
     (method git-fetch)
     (uri (git-reference
           (url "https://github.com/fulhax/ncpamixer/")
           (commit version)))
     (file-name (git-file-name name version))
     (sha256
      (base32 "1ix4cja3yka8ah5s1ygd0ghf53jllphnjxjnkivvx72jii4b778q"))))
   (build-system cmake-build-system)
   (inputs (list pulseaudio ncurses))
   (arguments
    (list
     #:configure-flags #~'("-DBUILD_MANPAGES=OFF")
     #:tests? #f
     #:phases #~(modify-phases %standard-phases
                               (add-before 'configure 'chdir-to-src
                                           (lambda _
                                             (chdir "src"))))))
   (home-page "https://github.com/fulhax/ncpamixer")
   (synopsis "Ncurses PulseAudio Mixer")
   (description "An ncurses mixer for PulseAudio inspired by pavucontrol.")
   (license license:expat)))

(define-public lnav
  (package
   (name "lnav")
   (version "0.12.3-beta2") ;0.12.2 hardcodes /usr/share/zoneinfo
   (source
    (origin
     (method url-fetch)
     (uri (string-append
           "https://github.com/tstack/lnav/archive/refs/tags/v" version
           ".tar.gz"))
     (sha256
      (base32 "0gmzxxxjz71q7j01j99lnszgilcakwdirh2lb5m9x0f6fz7hb76g"))))
   (build-system gnu-build-system)
   (native-inputs (list autoconf
                        automake
                        pcre2
                        sqlite
                        ncurses
                        readline
                        zlib
                        lbzip2
                        curl
                        libarchive
                        wireshark
                        rust
                        tzdata
                        perl-digest-sha))
   (home-page "https://github.com/tstack/lnav")
   (synopsis "Log file navigator")
   (description
    "The Logfile Navigator is a log file viewer for the terminal.")
   (arguments
    '(#:tests? #f)) ;tests fail on the beta
   (license license:bsd-2)))

(define-public python-pyopengl
  (package
    (name "python-pyopengl")
    (version "3.1.7")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "PyOpenGL" version))
       (sha256
        (base32
         "11kclw0b03m87pz3fkb0hb51762c30drdjg6v3a4z676i0w1mwzf"))))
    (build-system python-build-system)
    (inputs
     (list libglvnd mesa freeglut glu))
    (arguments
     `(#:tests? #f
       #:phases
       (modify-phases %standard-phases
         (add-before 'build 'fix-paths
           (lambda* (#:key inputs outputs #:allow-other-keys)
             (substitute* '("OpenGL/platform/ctypesloader.py")
               (("in filenames_to_try") "in [name]")
               (("base_name,") "name,"))
             (substitute* '("OpenGL/platform/glx.py"
                            "OpenGL/platform/egl.py"
                            "OpenGL/platform/osmesa.py"
                            "OpenGL/platform/darwin.py"
                            "tests/check_glut_load.py")
               (("'OpenGL'")
                (format #f "'~a/lib/libOpenGL.so'" (assoc-ref inputs "libglvnd")))
               (("'GLU'")
                (format #f "'~a/lib/libGLU.so'" (assoc-ref inputs "glu")))
               (("'glut',")
                (format #f "'~a/lib/libglut.so'," (assoc-ref inputs "freeglut")))
               (("'(GL|EGL|GLESv1_CM|GLESv2|OSMesa)'" all gl-library)
                (format #f "'~a/lib/lib~a.so'" (assoc-ref inputs "mesa") gl-library)))
               ;; Not providing libgle. It seems to be very old.
             #t)))))
    (home-page "https://pyopengl.sourceforge.net")
    (synopsis "Standard OpenGL bindings for Python")
    (description
     "PyOpenGL is the most common cross platform Python binding to OpenGL and
related APIs.  The binding is created using the standard @code{ctypes}
library.")
    (license license:bsd-3)))

(define-public python-pyopengl-accelerate
  (package
    (inherit python-pyopengl)
    (name "python-pyopengl-accelerate")
    (version "3.1.7")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "PyOpenGL-accelerate" version))
       (sha256
        (base32
         "101n545cgdmipph9mmhmx3abbycrwd0pa8pcs9zrz4rs4whkc4ib"))))
    (inputs
     (list libglvnd mesa python-numpy)) ; for cython module
                                        ; numpy_formathandler, thus not propagated
    (arguments
     `(#:tests? #f
       #:phases
       (modify-phases %standard-phases
         (delete 'fix-paths))))
    (synopsis "Acceleration code for PyOpenGL")
    (description
     "This is the Cython-coded accelerator module for PyOpenGL.")))