;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2022 Mathieu Othacehe ;;; ;;; 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 . (define-module (gnu compression) #:use-module (guix gexp) #:use-module (guix ui) #:use-module ((gnu packages compression) #:hide (zip)) #:use-module (srfi srfi-1) #:use-module (srfi srfi-9) #:use-module (ice-9 match) #:export (compressor compressor? compressor-name compressor-extension compressor-command %compressors lookup-compressor)) ;; Type of a compression tool. (define-record-type (compressor name extension command) compressor? (name compressor-name) ;string (e.g., "gzip") (extension compressor-extension) ;string (e.g., ".lz") (command compressor-command)) ;gexp (e.g., #~(list "/gnu/store/…/gzip" ; "-9n" )) (define %compressors ;; Available compression tools. (list (compressor "gzip" ".gz" #~(list #+(file-append gzip "/bin/gzip") "-9n")) (compressor "lzip" ".lz" #~(list #+(file-append lzip "/bin/lzip") "-9")) (compressor "xz" ".xz" #~(append (list #+(file-append xz "/bin/xz") "-e") (%xz-parallel-args))) (compressor "bzip2" ".bz2" #~(list #+(file-append bzip2 "/bin/bzip2") "-9")) (compressor "zstd" ".zst" ;; The default level 3 compresses better than gzip in a ;; fraction of the time, while the highest level 19 ;; (de)compresses more slowly and worse than xz. #~(list #+(file-append zstd "/bin/zstd") "-3" (format #f "--threads=~a" (parallel-job-count)))) (compressor "none" "" #f))) (define (lookup-compressor name) "Return the compressor object called NAME. Error out if it could not be found." (or (find (match-lambda (($ name*) (string=? name* name))) %compressors) (leave (G_ "~a: compressor not found~%") name))) irectory....* gnu/packages/clifm.scm (clifm)[arguments]: Add a phase to adjust the bash completion directory. Change-Id: I1652c9284eab295d28a82518e9e165c2b90776d9 Efraim Flashner 2024-11-26gnu: clifm: Fix cross-compiling....* gnu/packages/clifm.scm (clifm)[inputs]: Add file. Change-Id: I5c62d720850158779dbeabaff16047543b30170f Efraim Flashner 2024-11-26gnu: clifm: Update to 1.22....* gnu/packages/clifm.scm (clifm): Update to 1.22. Change-Id: Ie4308bf79d9e4a12121f6c6c560cee028f863d04 Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Rodion Goritskov 2024-10-02gnu: clifm: Update to 1.21....* gnu/packages/clifm.scm (clifm): Update to 1.21. Change-Id: I4b04721c8aa161650af32f528004e1c84aaf23c6 Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Rodion Goritskov 2024-08-16gnu: clifm: Update to 1.20....* gnu/packages/clifm.scm (clifm): Update to 1.20. [description]: Format description on a new line. Change-Id: I305b1ace736ea24a143c189a4b0895d3cdfd0c69 Signed-off-by: jgart <jgart@dismail.de> Rodion Goritskov 2024-06-21gnu: clifm: Update to 1.19....* gnu/packages/clifm.scm (clifm): Update to 1.19. Change-Id: I96e7d5841083e599b54855c4568aa6a18bfa6b7f Signed-off-by: jgart <jgart@dismail.de> Rodion Goritskov 2024-04-02gnu: clifm: Update to 1.18....* gnu/packages/clifm.scm (clifm): Update to 1.18. Change-Id: Ic0c2a307dbbcca06cfffe60248234849dca2f726 Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Rodion Goritskov 2024-02-29gnu: clifm: Update to 1.17....* gnu/packages/clifm.scm (clifm): Update to 1.17. [description]: Correct a typo. Change-Id: I16ff527138654e7a25f778beabf2aba38dda1056 Signed-off-by: Andreas Enge <andreas@enge.fr> Rodion Goritskov 2024-02-09gnu: clifm: Update to 1.16...* gnu/packages/clifm.scm (clifm): Update to 1.16. Change-Id: I0bbc1599c4f5cfdfea4e662c3e61318c3c1495a6 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Rodion Goritskov