;;; 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")) (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))) ='/guix/commit/gnu/packages/gstreamer.scm?id=7d2ced8d6d9c38327592d312376d59a8c37fc160'>gnu: python-gst: Fix build....* gnu/packages/glib.scm: Add package python-pygobject-3.48. * gnu/packages/gstreamer.scm (python-gst) [inputs]: Use python-pygobject-3.48 to fix tests. Change-Id: I3038b85db67ff354a6d77708fa4fd7c63aa6732c Signed-off-by: Andrew Tropin <andrew@trop.in> Remco van 't Veer 2024-06-03gnu: gst-plugins-bad: Ignore elements_netsim test....* gnu/packages/gstreamer.scm (gst-plugins-bad)[adjust-tests]: Add “elements/netsim.c” to the list of ignored test files. Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Liliana Marie Prikler 2024-05-06gnu: libvisual-plugins: Reformat with 'guix style'....* gnu/packages/gstreamer.scm (libvisual-plugins): Reformat package using 'guix style'. Change-Id: I91cb02b22bc50c71ad314d2a48207a77e3700a41 Efraim Flashner 2024-05-06gnu: libvisual-plugins: Build with librsvg-for-system....* gnu/packages/gstreamer.scm (libvisual-plugins)[inputs]: Replace librsvg with librsvg-for-system. Change-Id: Ie4199e6f52236dfae086b1425607b6e0f1f9129b Efraim Flashner 2024-05-06gnu: libvisual-plugins: Disable oinksie plugin....* gnu/packages/gstreamer.scm (libvisual-plugins)[arguments]: Add a configure-flag to disable the oinksie plugin. Change-Id: I6181384c715eeeceba81d196960e4cd0148cc55a Efraim Flashner 2024-03-02Merge branch 'master' into gnome-teamLiliana Marie Prikler 2024-02-28gnu: gst-plugins-bad: Skip camerabin test on aarch64-linux....* gnu/packages/gstreamer.scm (gst-plugins-bad)[arguments]: Adjust custom 'adjust-tests phase to skip the camerabin test on aarch64-linux. Change-Id: Ic69a19252bee5e63ff94bc0d3159360937ee81c4 Efraim Flashner