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))1819(define-public libxo20 (package21 (name "libxo")22 (version "1.7.5")23 (source24 (origin25 (method git-fetch)26 (uri (git-reference27 (url "https://github.com/Juniper/libxo")28 (commit version)))29 (file-name (git-file-name name version))30 (sha25631 (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 (description37 "This library allows an application to generate text, XML,38JSON, and HTML output using a common set of function calls. The application39decides at run time which output style should be produced. The application40calls a function @code{xo_emit} to product output that is described in a format41string. A \"field descriptor\" tells libxo what the field is and what it means.")42 (license license:bsd-2)))4344(define-public chimera-utils45 (package46 (name "chimerautils")47 (version "14.2.0")48 (source49 (origin50 (method git-fetch)51 (uri (git-reference52 (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 (sha25661 (base32 "1z23ii57r9li4ffk9fg8q5k6n74rkzvmj2v5bcwb7dgkjanmhrn5"))))62 (build-system meson-build-system)63 (arguments64 (list65 #:tests? #f))66 (inputs (list (list zstd "lib")67 zlib68 ncurses69 acl70 libedit71 libxo72 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 (description77 "This is a port of the FreeBSD userland for Linux provided by78the Chimera Linux distribution. Essentially, it is a collection of UNIX tools79such as @command{grep}, @command{cp}, @command{vi}, etc. and can be used as an80alternative to the corresponding implementations from the GNU project.")81 (license license:bsd-2)))8283;; TODO: Use package-with-extra-patches somehow, however, we need to change84;; the package name somehow as loksh would otherwise be ambiguous and not85;; sure how do that on a package returned by package-with-extra-patches.86(define-public loksh-bracketed87 (package88 (inherit loksh)89 (name "loksh-bracketed")90 (source91 (origin92 (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")))))))