guix-channel

A channel for the Guix package manager

git clone https://git.8pit.net/guix-channel.git

 1(define-module (nmeum packages misc)
 2  #:use-module (srfi srfi-26)
 3  #:use-module (guix)
 4  #:use-module (guix git-download)
 5  #:use-module (guix build-system gnu)
 6  #:use-module (guix build-system meson)
 7  #:use-module ((guix licenses) #:prefix license:)
 8  #:use-module (gnu packages acl)
 9  #:use-module (gnu packages autotools)
10  #:use-module (gnu packages bison)
11  #:use-module (gnu packages compression)
12  #:use-module (gnu packages flex)
13  #:use-module (gnu packages libedit)
14  #:use-module (gnu packages ncurses)
15  #:use-module (gnu packages pkg-config)
16  #:use-module (gnu packages shells)
17  #:use-module (gnu packages tls))
18
19(define-public libxo
20  (package
21    (name "libxo")
22    (version "1.7.5")
23    (source
24     (origin
25       (method git-fetch)
26       (uri (git-reference
27             (url "https://github.com/Juniper/libxo")
28             (commit version)))
29       (file-name (git-file-name name version))
30       (sha256
31        (base32 "115jv067msym0lsxkiz95ddvspd6smvww37248xkqyin0rxb2m0j"))))
32    (build-system gnu-build-system)
33    (native-inputs (list autoconf automake libtool))
34    (home-page "http://juniper.github.io/libxo/libxo-manual.html")
35    (synopsis "Library for Generating Text, XML, JSON, and HTML Output")
36    (description
37     "This library allows an application to generate text, XML,
38JSON, and HTML output using a common set of function calls.  The application
39decides at run time which output style should be produced.  The application
40calls a function @code{xo_emit} to product output that is described in a format
41string.  A \"field descriptor\" tells libxo what the field is and what it means.")
42    (license license:bsd-2)))
43
44(define-public chimera-utils
45  (package
46    (name "chimerautils")
47    (version "14.2.0")
48    (source
49     (origin
50       (method git-fetch)
51       (uri (git-reference
52             (url "https://github.com/chimera-linux/chimerautils")
53             (commit (string-append "v" version))))
54       (file-name (git-file-name name version))
55       (patches (map (lambda (patch)
56                       (search-path (map (cut string-append <>
57                                              "/nmeum/packages/patches")
58                                         %load-path) patch))
59                     '("chimerautils-find-getopt-fix.patch")))
60       (sha256
61        (base32 "1z23ii57r9li4ffk9fg8q5k6n74rkzvmj2v5bcwb7dgkjanmhrn5"))))
62    (build-system meson-build-system)
63    (arguments
64     (list
65      #:tests? #f))
66    (inputs (list (list zstd "lib")
67                  zlib
68                  ncurses
69                  acl
70                  libedit
71                  libxo
72                  openssl))
73    (native-inputs (list flex bison pkg-config))
74    (home-page "https://github.com/chimera-linux/chimerautils")
75    (synopsis "The FreeBSD-based core Linux userland from Chimera Linux")
76    (description
77     "This is a port of the FreeBSD userland for Linux provided by
78the Chimera Linux distribution.  Essentially, it is a collection of UNIX tools
79such as @command{grep}, @command{cp}, @command{vi}, etc. and can be used as an
80alternative to the corresponding implementations from the GNU project.")
81    (license license:bsd-2)))
82
83;; TODO: Use package-with-extra-patches somehow, however, we need to change
84;; the package name somehow as loksh would otherwise be ambiguous and not
85;; sure how do that on a package returned by package-with-extra-patches.
86(define-public loksh-bracketed
87  (package
88    (inherit loksh)
89    (name "loksh-bracketed")
90    (source
91     (origin
92       (inherit (package-source loksh))
93       (patches (map (lambda (patch)
94                       (search-path (map (cut string-append <>
95                                              "/nmeum/packages/patches")
96                                         %load-path) patch))
97                     '("loksh-bracketed-paste-mode.patch")))))))