aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/cedille.scm
blob: 80ed7e97595df5a932e0c2d4c5682cdc90aa66b1 (about) (plain)
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
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
;;;
;;; 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 <http://www.gnu.org/licenses/>.

(define-module (gnu packages cedille)
  #:use-module (gnu packages)
  #:use-module (gnu packages agda)
  #:use-module (gnu packages emacs-xyz)
  #:use-module (gnu packages haskell)
  #:use-module (gnu packages haskell-xyz)
  #:use-module (guix build-system emacs)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages))

(define-public cedille
  (package
    (name "cedille")
    (version "1.1.1")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/cedille/cedille")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32
         "07kv9wncyipfjf5w4ax8h2p35g70zb1qw6zc4afd7c225xia55wp"))))
    (inputs
     `(("agda" ,agda)
       ("agda-ial" ,agda-ial)
       ("ghc" ,ghc)
       ("ghc-alex" ,ghc-alex)
       ("ghc-happy" ,ghc-happy)))
    (build-system emacs-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'patch-cedille-path-el
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((out (assoc-ref outputs "out")))
               (substitute* "cedille-mode.el"
                 (("/usr/share/emacs/site-lisp/cedille-mode")
                  (string-append
                   out "/share/emacs/site-lisp/guix.d/cedille-"
                   ,version)))
               #t)))
         (add-after 'unpack 'copy-cedille-mode
           (lambda* (#:key outputs #:allow-other-keys)
             (let* ((out (assoc-ref outputs "out"))
                    (lisp
                     (string-append
                      out "/share/emacs/site-lisp/guix.d/cedille-"
                      ,version "/")))
               (mkdir-p (string-append lisp "cedille-mode"))
               (copy-recursively
                "cedille-mode"
                (string-append lisp "cedille-mode"))
               (mkdir-p (string-append lisp "se-mode"))
               (copy-recursively
                "se-mode"
                (string-append lisp "se-mode"))
               #t)))
         ;; FIXME: Byte compilation fails
         (delete 'build)
         (replace 'check
           (lambda _
             (with-directory-excursion "cedille-tests"
               (invoke "sh" "run-tests.sh"))))
         (add-after 'unpack 'patch-libraries
           (lambda _ (patch-shebang "create-libraries.sh") #t))
         (add-after 'unpack 'copy-ial
           (lambda* (#:key inputs #:allow-other-keys)
             (copy-recursively
              (string-append (assoc-ref inputs "agda-ial")
                             "/include/agda/ial")
              "ial")
             ;; Ambiguous module if main is included from ial
             (delete-file "ial/main.agda")
             #t))
         (add-after 'check 'build-cedille
           ;; Agda has a hard time with parallel compilation
           (lambda _
             (invoke "touch" "src/Templates.hs")
             (make-file-writable  "src/Templates.hs")
             (invoke "touch" "src/templates.agda")
             (make-file-writable  "src/templates.agda")
             (invoke "make" "--jobs=1")))
         (add-after 'install 'install-cedille
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((out (assoc-ref outputs "out")))
               (copy-recursively
                "lib" (string-append out "/lib/cedille"))
               (install-file "cedille" (string-append out "/bin"))
               (install-file "core/cedille-core"
                             (string-append out "/bin"))
               #t))))))
    (home-page "https://cedille.github.io/")
    (synopsis
     "Language based on Calculus of Dependent Lambda Eliminations")
    (description
     "Cedille is an interactive theorem-prover and dependently typed
programming language, based on extrinsic (aka Curry-style) type theory.  This
makes it rather different from type theories like Coq and Agda, which are
intrinsic (aka Church-style).  In Cedille, terms are nothing more than
annotated versions of terms of pure untyped lambda calculus.  In contrast, in
Coq or Agda, the typing annotations are intrinsic parts of terms.  The typing
annotations can only be erased as an optimization under certain conditions,
not by virtue of the definition of the type theory.")
    (license license:expat)))
ng>")) (substitute* "examples/test_io.cpp" (("dami;") "dami;\nusing namespace std;")) #t))))) (synopsis "Library for reading, writing, and manipulating ID3v1 and ID3v2 tags") (description "Id3lib is a cross-platform software development library for reading, writing, and manipulating ID3v1 and ID3v2 tags. It is an on-going project whose primary goals are full compliance with the ID3v2 standard, portability across several platforms, and providing a powerful and feature-rich API with a highly stable and efficient implementation.") (license license:lgpl2.0+) (home-page "https://id3lib.sourceforge.net/"))) (define-public taglib (package (name "taglib") (version "1.12") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/taglib/taglib") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0q7dkn5rh9v6b0scmcp2qmjv3iransafmpn6jvgid0yq75m2nqd2")))) (build-system cmake-build-system) (arguments '(#:tests? #f ; Tests are not ran with BUILD_SHARED_LIBS on. #:configure-flags (list "-DBUILD_SHARED_LIBS=ON") #:phases (modify-phases %standard-phases (add-before 'configure 'adjust-zlib-ldflags (lambda* (#:key inputs #:allow-other-keys) ;; Make sure users of 'taglib-config --libs' get the -L ;; flag for zlib. (substitute* "CMakeLists.txt" (("set\\(ZLIB_LIBRARIES_FLAGS -lz\\)") (string-append "set(ZLIB_LIBRARIES_FLAGS \"-L" (assoc-ref inputs "zlib") "/lib -lz\")"))) #t))))) (inputs (list zlib)) (home-page "https://taglib.org") (synopsis "Library to access audio file meta-data") (description "TagLib is a C++ library for reading and editing the meta-data of several popular audio formats. Currently it supports both ID3v1 and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC, Speex, WavPack TrueAudio, WAV, AIFF, MP4 and ASF files.") ;; Dual-licensed: user may choose between LGPLv2.1 or MPLv1.1. (license (list license:lgpl2.1 license:mpl1.1)))) (define-public minimp3 ;; The latest commit is used as there is no release. (let ((commit "afb604c06bc8beb145fecd42c0ceb5bda8795144") (revision "0")) (package (name "minimp3") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/lieff/minimp3") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "0brgrbij8swhp7lac21xnnrr5l0371lkr5vz6h9x0dbz1qq2xhsj")))) ;; TODO: minimp3 has many more files for at least tests with scripts to ;; run them, although it is unclear how to easily package them. (build-system copy-build-system) (arguments '(#:install-plan '(("minimp3.h" "include/") ("minimp3_ex.h" "include/")))) (home-page "https://github.com/lieff/minimp3") (synopsis "Minimalistic MP3 decoder header library") (description "Minimp3 is a header-only MP3 decoder library.") (license license:cc0)))) (define-public mp3info (package (name "mp3info") (version "0.8.5a") (source (origin (method url-fetch) (uri (string-append "https://ibiblio.org" "/pub/linux/apps/sound/mp3-utils/mp3info/mp3info-" version ".tgz")) (sha256 (base32 "042f1czcs9n2sbqvg4rsvfwlqib2gk976mfa2kxlfjghx5laqf04")) (modules '((guix build utils))) (snippet '(begin (substitute* "Makefile" (("/bin/rm") "rm") (("/usr/bin/install") "install") (("man/man1") "share/man/man1")) #t)))) (build-system gnu-build-system) (outputs '("out" "gui")) ;GTK+ interface in "gui" (arguments '(#:phases (modify-phases %standard-phases (replace 'configure (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (substitute* "Makefile" (("prefix=.*") (string-append "prefix := " out "\n")))) #t)) (add-before 'install 'pre-install (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (mkdir-p (string-append out "/bin")) (mkdir-p (string-append out "/share/man/man1"))) #t)) (add-after 'install 'post-install (lambda* (#:key outputs #:allow-other-keys) ;; Move the GTK+ interface to "gui". (let ((out (assoc-ref outputs "out")) (gui (assoc-ref outputs "gui"))) (mkdir-p (string-append gui "/bin")) (rename-file (string-append out "/bin/gmp3info") (string-append gui "/bin/gmp3info"))) #t))) #:tests? #f)) (native-inputs (list pkg-config)) (inputs (list gtk+-2 ncurses)) (home-page "https://www.ibiblio.org/mp3info/") (synopsis "MP3 technical info viewer and ID3 1.x tag editor") (description "MP3Info is a little utility used to read and modify the ID3 tags of MP3 files. MP3Info can also display various technical aspects of an MP3 file including playing time, bit-rate, sampling frequency and other attributes in a pre-defined or user-specifiable output format.") (license license:gpl2+))) (define-public libmp3splt (package (name "libmp3splt") (version "0.9.2") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/mp3splt/libmp3splt/" version "/libmp3splt-" version ".tar.gz")) (sha256 (base32 "1p1mn2hsmj5cp40fnc8g1yfvk72p8pjxi866gjdkgjsqrr7xdvih")))) (build-system gnu-build-system) (inputs (list flac libid3tag libmad libogg libltdl libvorbis pcre)) (native-inputs (list pkg-config)) (synopsis "Library for splitting mp3 and ogg vorbis files") (description "Mp3splt is a utility to split mp3 and ogg vorbis files selecting a begin and an end time position, without decoding. For splitting an album, one may select split points and file names manually or obtain them automatically from CDDB (internet or a local file) or from .cue files. The tool also supports automatic silence split, that can be used also to adjust cddb/cue splitpoints. This package contains the library.") (license license:gpl2+) (home-page "https://mp3splt.sourceforge.net/mp3splt_page/home.php"))) (define-public mp3splt (package (name "mp3splt") (version "2.6.2") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/mp3splt/mp3splt/" version "/mp3splt-" version ".tar.gz")) (sha256 (base32 "1aiv20gypb6r84qabz8gblk8vi42cg3x333vk2pi3fyqvl82phry")))) (build-system gnu-build-system) (native-inputs (list pkg-config)) (inputs (list libmp3splt)) (synopsis "Utility for splitting mp3 and ogg vorbis files") (description "Mp3splt is a utility to split mp3 and ogg vorbis files selecting a begin and an end time position, without decoding. For splitting an album, one may select split points and file names manually or obtain them automatically from CDDB (internet or a local file) or from .cue files. The tool also supports automatic silence split, that can be used also to adjust cddb/cue splitpoints. This package contains the binary.") (license license:gpl2+) (home-page "https://mp3splt.sourceforge.net/mp3splt_page/home.php"))) (define-public mpg123 (package (name "mpg123") (version "1.31.2") (source (origin (method url-fetch) (uri (list (string-append "mirror://sourceforge/mpg123/mpg123/" version "/mpg123-" version ".tar.bz2") (string-append "https://www.mpg123.org/download/mpg123-" version ".tar.bz2"))) (sha256 (base32 "1pn777l9m7qbsx4v93gnav8bf6yi3skzdz8x81mkpx1ibs824zxi")))) (build-system gnu-build-system) (arguments '(#:configure-flags '("--with-default-audio=pulse"))) (native-inputs (list pkg-config)) (inputs (list alsa-lib pulseaudio)) (home-page "https://www.mpg123.org/") (synopsis "Console MP3 player and decoder library") (description "Mpg123 is a real time MPEG 1.0/2.0/2.5 audio player/decoder for layers 1,2 and 3 (MPEG 1.0 layer 3 aka MP3 most commonly tested). It comes with a command-line tool as well as a C library, libmpg123.") (license license:lgpl2.1))) (define-public mpg321 (package (name "mpg321") (version "0.3.2") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/mpg321/mpg321/" version "/mpg321_" version ".orig.tar.gz")) (file-name (string-append "mpg321-" version ".tar.gz")) (sha256 (base32 "0ki8mh76bbmdh77qsiw682dvi8y468yhbdabqwg05igmwc1wqvq5")) (patches (search-patches "mpg321-CVE-2019-14247.patch" "mpg321-gcc-10.patch")))) (build-system gnu-build-system) (arguments '(#:configure-flags '("--disable-alsa"))) (inputs `(("zlib" ,zlib) ("libmad" ,libmad) ("libid3tag" ,libid3tag) ("libao" ,ao))) (home-page "https://mpg321.sourceforge.net/") (synopsis "Command-line MP3 player") (description "Mpg321 is a command-line mp3 player. mpg321 is used for frontends, as an mp3 player and as an mp3 to wave file decoder (primarily for use with CD-recording software).") (license license:gpl2))) (define-public lame (package (name "lame") (version "3.100") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/lame/lame/" (version-major+minor version) "/lame-" version ".tar.gz")) (sha256 (base32 "07nsn5sy3a8xbmw1bidxnsj5fj6kg9ai04icmqw40ybkp353dznx")))) (build-system gnu-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'install 'install-pkg-config (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (pkg-config-dir (string-append out "/lib/pkgconfig"))) (mkdir-p pkg-config-dir) (with-output-to-file (string-append pkg-config-dir "/lame.pc") (lambda _ (format #t "prefix=~@*~a~@ libdir=${prefix}/lib~@ includedir=${prefix}/include~@ Name: lame~@ Description:~@ Version: ~a~@ Libs: -L${libdir} -lmp3lame~@ Cflags: -I${includedir}~%" out ,version))))))))) (home-page "https://lame.sourceforge.net/") (synopsis "MPEG Audio Layer III (MP3) encoder") (description "LAME is a high quality MPEG Audio Layer III (MP3) encoder.") (license license:lgpl2.0))) (define-public ripperx (package (name "ripperx") (version "2.8.0") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/ripperx/ripperx/" version "/ripperx-" version ".tar.bz2")) (sha256 (base32 "1ss3c1a5hx6c99q1cryxg0jhbnbdj6ga9xyz0dzlz9qhzg5qswfs")) (patches (search-patches "ripperx-missing-file.patch")))) (build-system gnu-build-system) (propagated-inputs (list font-ghostscript cdparanoia flac lame vorbis-tools)) (inputs (list glib gtk+-2 id3lib taglib)) (native-inputs (list pkg-config)) (synopsis "GTK program to rip and encode CD audio tracks") (description "RipperX is a GTK program to rip CD audio tracks and encode them to the Ogg, MP3, or FLAC formats. Its goal is to be easy to use, requiring only a few mouse clicks to convert an entire album. It supports CDDB lookups for album and track information.") (license license:gpl2) (home-page "https://sourceforge.net/projects/ripperx/"))) (define-public libmpcdec (package (name "libmpcdec") (version "1.2.6") (source (origin (method url-fetch) (uri (string-append "https://files.musepack.net/source/libmpcdec-" version ".tar.bz2")) (sha256 (base32 "1a0jdyga1zfi4wgkg3905y6inghy3s4xfs5m4x7pal08m0llkmab")))) (build-system gnu-build-system) (synopsis "Decoding library for the Musepack audio format") (description "This library supports decoding of the Musepack (MPC) audio compression format.") (license license:bsd-3) (home-page "https://musepack.net"))) (define-public mpc123 (package (name "mpc123") (version "0.2.4") (source (origin (method url-fetch) (uri (list (string-append "mirror://sourceforge/mpc123/version%20" version "/mpc123-" version ".tar.gz") (string-append "mirror://debian/pool/main/m/" name "/" name "_" version ".orig.tar.gz"))) (sha256 (base32 "0sf4pns0245009z6mbxpx7kqy4kwl69bc95wz9v23wgappsvxgy1")) (patches (search-patches "mpc123-initialize-ao.patch")))) (build-system gnu-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'configure (lambda _ (substitute* "Makefile" (("CC[[:blank:]]*:=.*") "CC := gcc\n")) (setenv "CFLAGS" "-fcommon -g"))) ;allow compilation with GCC 10 (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (bin (string-append out "/bin"))) (install-file "mpc123" bin))))) #:tests? #f)) (native-inputs `(("gettext" ,gettext-minimal))) (inputs `(("libao" ,ao) ("libmpcdec" ,libmpcdec))) (home-page "https://github.com/bucciarati/mpc123") (synopsis "Audio player for Musepack-formatted files") (description "Mpc123 is a command-line player for files in the Musepack audio compression format (.mpc files).") (license license:gpl2+))) (define-public eyed3 (package (name "eyed3") (version "0.9.7") (source (origin (method url-fetch) (uri (pypi-uri "eyeD3" version)) (sha256 (base32 "03ygqns4ibq0nnbvdm1pk97nzyqrl76df2cl9w8lasipjf9qxcck")))) (build-system python-build-system) (arguments `(#:tests? #f)) ; the required test data contains copyrighted material (propagated-inputs (list python-deprecation python-filetype python-six)) (synopsis "MP3 tag ID3 metadata editor") (description "eyeD3 is a Python tool for working with audio files, specifically mp3 files containing ID3 metadata (i.e. song info). It provides a command-line tool (eyeD3) and a Python library (import eyed3) that can be used to write your own applications or plugins that are callable from the command-line tool.") (home-page "https://eyed3.readthedocs.io/en/latest/") (license license:gpl2+))) (define-public chromaprint (package (name "chromaprint") (version "1.5.1") (source (origin (method url-fetch) (uri (string-append "https://github.com/acoustid/chromaprint/releases/download/v" version "/chromaprint-" version ".tar.gz")) (sha256 (base32 "072y6c7ijkm6r674f6z089rbdazrmxzpdcsm6y6vf64b7gxdiam1")))) (build-system cmake-build-system) (arguments `(#:tests? #f ; tests require googletest *sources* ;;#:configure-flags '("-DBUILD_TESTS=ON") ; for building the tests #:configure-flags '("-DBUILD_TOOLS=ON") ; for fpcalc #:test-target "check")) (inputs ;; requires one of FFmpeg (prefered), FFTW3 or vDSP ;; use the same ffmpeg version as for acoustid-fingerprinter (list ffmpeg-4 boost)) (home-page "https://acoustid.org/chromaprint") (synopsis "Audio fingerprinting library") (description "Chromaprint is a library for calculating audio fingerprints which are used by the Acoustid service. Its main purpose is to provide an accurate identifier for record tracks.") (license license:lgpl2.1+))) (define-public python-audioread (package (name "python-audioread") (version "2.1.9") (source (origin (method url-fetch) (uri (pypi-uri "audioread" version)) (sha256 (base32 "129hab8x9sb3plff2bkq4xnzc3i8k9rgcm1a36l813kc0m10wj53")))) (build-system python-build-system) (arguments `(#:tests? #f)) ; there is no "audiofile" fixture (native-inputs (list python-pytest python-pytest-runner)) (home-page "https://github.com/sampsyo/audioread") (synopsis "Decode audio files using whichever backend is available") (description "This package provides a Python library for audo decoding. It uses whatever audio backend is available, such as GStreamer, Core Audio, MAD, FFmpeg, etc.") (license license:expat))) (define-public python-pyacoustid (package (name "python-pyacoustid") (version "1.2.2") (source (origin (method url-fetch) (uri (pypi-uri "pyacoustid" version)) (sha256 (base32 "0ha15m41r8ckmanc4k9nrlb9hprvhdjxndzw40a1yj3z1b1xjyf2")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'chromaprint-path (lambda* (#:key inputs #:allow-other-keys) (substitute* "chromaprint.py" (("libchromaprint.so.1") (string-append (assoc-ref inputs "chromaprint") "/lib/libchromaprint.so.1"))) (substitute* "acoustid.py" (("'fpcalc'") (string-append "'" (assoc-ref inputs "chromaprint") "/bin/fpcalc'"))) #t))))) (inputs (list chromaprint)) (propagated-inputs (list python-audioread python-requests)) (home-page "https://github.com/beetbox/pyacoustid") (synopsis "Bindings for Chromaprint acoustic fingerprinting") (description "This package provides bindings for the Chromaprint acoustic fingerprinting library and the Acoustid API.") (license license:expat))) (define-public python-pytaglib (package (name "python-pytaglib") (version "1.4.6") (source (origin (method url-fetch) (uri (pypi-uri "pytaglib" version)) (sha256 (base32 "0li970qslfymz4vk1wrij2nfqw3l15cpc3fjjci48mpvg17gbnhn")) ;; Delete file generated by Cython. (modules '((guix build utils))) (snippet '(begin (delete-file "src/taglib.cpp"))))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases ;; Ensure that the Cython file is regenerated. (add-after 'unpack 'setup-environment (lambda _ (setenv "PYTAGLIB_CYTHONIZE" "1")))))) (native-inputs (list python-cython python-pytest)) (inputs (list taglib)) (home-page "https://github.com/supermihi/pytaglib") (synopsis "Python bindings for taglib") (description "This package is a Python audio tagging library. It is cross-platform, works with all Python versions, and is very simple to use yet fully featured.") (license license:gpl3))) (define-public wavbreaker (package (name "wavbreaker") (version "0.15") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/thp/wavbreaker/") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "16h0sfcb8av6a368giizzwv9m0lq5c3bnf4b9vyyh9nkbbsc7c3j")))) (build-system meson-build-system) (arguments '(#:modules ((guix build utils) (guix build meson-build-system)) #:phases (modify-phases %standard-phases (add-after 'install 'wrap-program ;; This wrapping is necessary to make wavbreaker find things it ;; needs in pure environments. (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (adwaita-icons (assoc-ref inputs "adwaita-icon-theme")) (hicolor-icons (assoc-ref inputs "hicolor-icon-theme")) (shared-mime (assoc-ref inputs "shared-mime-info"))) (wrap-program (string-append out "/bin/wavbreaker") ;; Needed in order for wavbreakere to find the icons it needs `("XDG_DATA_DIRS" ":" prefix ,(map (lambda (package) (string-append package "/share")) `(,out ;for wavbreaker's icon ,adwaita-icons ,hicolor-icons ,shared-mime))) ;; This is necessary to load some pixbufs like Adwaita's ;; check-symbolic.svg and wavbreaker's own logo in the ;; 'about' section. `("GDK_PIXBUF_MODULE_FILE" = (,(getenv "GDK_PIXBUF_MODULE_FILE"))) ;; Needed for GTK's file chooser to not crash. `("GSETTINGS_SCHEMA_DIR" = (,(string-append (assoc-ref inputs "gtk+") "/share/glib-2.0/schemas")))))))))) (native-inputs (list pkg-config cmake)) (inputs (list glib gtk+ ao bash-minimal adwaita-icon-theme shared-mime-info hicolor-icon-theme gsettings-desktop-schemas)) (home-page "https://wavbreaker.sourceforge.io/") (synopsis "WAV and MP3 file splitter with a GUI") (description "Wavbreaker is a WAV and MP3 file splitter. It can be used to break up a WAV or MP3 audio file into multiple WAV files. Wavbreaker contains a helpful waveform display of the audio file being edited, to help the user in splitting the file at the right point. Wavbreaker also supports splitting MP3 files without re-encoding them, to preserve their original audio quality.") (license license:gpl2+))) `(,lz4 "static") `(,util-linux "static") `(,zlib "static") `(,zstd "static")))) (synopsis "Statically-linked, minimal variant of bcachefs-tools"))) (define-public bcachefs/static (package (name "bcachefs-static") (version (package-version bcachefs-tools-minimal/static)) (source #f) (build-system trivial-build-system) (arguments (list #:modules '((guix build utils)) #:builder #~(begin (use-modules (guix build utils)) (let ((target (string-append #$output "/sbin/bcachefs"))) (install-file (search-input-file %build-inputs "sbin/bcachefs") (dirname target)) (remove-store-references target))))) (inputs (list bcachefs-tools-minimal/static)) (home-page (package-home-page bcachefs-tools-minimal/static)) (synopsis "Statically-linked bcachefs command from bcachefs-tools") (description "This package provides the statically-linked @command{bcachefs} from a minimal bcachefs-tools package. It is meant to be used in initrds.") (license (package-license bcachefs-tools-minimal/static)))) (define-public exfatprogs (package (name "exfatprogs") (version "1.2.5") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/exfatprogs/exfatprogs") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0plj52kjvhy94hdk0bq8bc7ql6yh44x76kryxhn46vwbxayv790j")))) (build-system gnu-build-system) (arguments (list #:configure-flags #~(list "--disable-static") #:phases #~(modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (setenv "FSCK1" "../fsck/fsck.exfat") ;; Upstream CI uses a second FSCK provided by its host operating ;; system to verify the results of the newly-built one. That ;; makes no sense in Guix, but we can detect crashes, unexpected ;; inconsistencies, and other badness by testing with only one. (setenv "FSCK2" (getenv "FSCK1")) (with-directory-excursion "tests" (invoke "./test_fsck.sh")))))))) (native-inputs (list autoconf automake libtool pkg-config)) (home-page "https://github.com/exfatprogs/exfatprogs") (synopsis "Tools to create, check, and repair exFAT file systems") (description "These are command-line user space tools for the @acronym{exFAT, Extensible File Allocation Table} file systems. Included are @command{mkfs.exfat} to create (format) new exFAT file systems, and @command{fsck.exfat} to check their consistency and repair them.") (license license:gpl2+))) (define-public httpfs2 (package (name "httpfs2") (version "0.1.5") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/httpfs/httpfs2/" "httpfs2-" version ".tar.gz")) (sha256 (base32 "1h8ggvhw30n2r6w11n1s458ypggdqx6ldwd61ma4yd7binrlpjq1")))) (build-system gnu-build-system) (native-inputs (list asciidoc docbook-xml libxml2 libxslt pkg-config)) (inputs (list fuse-2 gnutls)) (arguments (list #:phases #~(modify-phases %standard-phases (delete 'configure) ; no configure script (replace 'install ;; There's no ‘install’ target. Install all variants manually. (lambda _ (let* ((bin (string-append #$output "/bin")) (man1 (string-append #$output "/share/man/man1"))) (mkdir-p bin) (mkdir-p man1) (for-each (lambda (variant) (let ((man1-page (string-append variant ".1"))) (install-file variant bin) (install-file man1-page man1))) (list "httpfs2" "httpfs2-mt" "httpfs2-ssl" "httpfs2-ssl-mt")))))) #:make-flags #~(list (string-append "CC=" #$(cc-for-target))) #:parallel-build? #f ; can result in missing man pages #:tests? #f)) ; no tests (home-page "https://sourceforge.net/projects/httpfs/") (synopsis "Mount remote files over HTTP") (description "httpfs2 is a @code{fuse} file system for mounting any @dfn{HyperText} (HTTP or HTTPS) URL. It uses HTTP/1.1 byte ranges to request arbitrary bytes from the web server, without needing to download the entire file. This is particularly useful with large archives such as ZIP files and ISO images when you only need to inspect their contents or extract specific files. Since the HTTP protocol itself has no notion of directories, only a single file can be mounted.") (license license:gpl2+))) (define-public jfsutils (package (name "jfsutils") (version "1.1.15") (source (origin (method url-fetch) (uri (string-append "http://jfs.sourceforge.net/project/pub/jfsutils-" version ".tar.gz")) (sha256 (base32 "0kbsy2sk1jv4m82rxyl25gwrlkzvl3hzdga9gshkxkhm83v1aji4")) (patches (search-patches "jfsutils-add-sysmacros.patch" "jfsutils-gcc-compat.patch" "jfsutils-include-systypes.patch")))) (build-system gnu-build-system) (inputs (list `(,util-linux "lib"))) (home-page "https://jfs.sourceforge.net/home.html") (synopsis "Utilities for managing JFS file systems") (description "The JFSutils are a collection of utilities for managing the @acronym{JFS, Journaled File System}, a 64-bit journaling file system created by IBM and later ported to the kernel Linux. The following commands are available: @enumerate @item @command{fsck.jfs}: check and repair a JFS file system or replay its transaction log. @item @command{logdump}: dump the JFS journal log. @item @command{logredo}: replay the JFS journal log. @item @command{mkfs.jfs}: create a new JFS file system. @item @command{xchklog}: save a JFS fsck log to a file. @item @command{xchkdmp}: dump the contents of such a log file. @item @command{xpeek}: a JFS file system editor with a shell-like interface. @end enumerate\n") (license license:gpl3+))) ; no explicit version given (define-public jfsutils/static (static-package (package (inherit jfsutils) (name "jfsutils-static") (inputs `(("util-linux:static" ,util-linux "static") ,@(package-inputs jfsutils)))))) (define-public jfs_fsck/static (package (name "jfs_fsck-static") (version (package-version jfsutils)) (source #f) (build-system trivial-build-system) (arguments `(#:modules ((guix build utils)) #:builder (begin (use-modules (guix build utils) (ice-9 ftw) (srfi srfi-26)) (let* ((jfsutils (assoc-ref %build-inputs "jfsutils")) (fsck "jfs_fsck") (out (assoc-ref %outputs "out")) (sbin (string-append out "/sbin"))) (mkdir-p sbin) (with-directory-excursion sbin (install-file (string-append jfsutils "/sbin/" fsck) ".") (remove-store-references fsck) (chmod fsck #o555)) #t)))) (inputs `(("jfsutils" ,jfsutils/static))) (home-page (package-home-page jfsutils)) (synopsis "Statically-linked jfs_fsck command from jfsutils") (description "This package provides statically-linked jfs_fsck command taken from the jfsutils package. It is meant to be used in initrds.") (license (package-license jfsutils)))) (define-public nilfs-utils (package (name "nilfs-utils") (version "2.2.11") (source (origin (method url-fetch) (uri (string-append "https://nilfs.sourceforge.io/download" "/nilfs-utils-" version ".tar.bz2")) (sha256 (base32 "1k9l5kzhdph3jh04kxz4dn5yb210205iycbnpklrpi6jy1zqj0l6")))) (build-system gnu-build-system) (arguments (list #:configure-flags #~(list "--enable-static=no") #:phases #~(modify-phases %standard-phases (add-before 'bootstrap 'force-bootstrap (lambda _ (delete-file "configure") (substitute* "configure.ac" (("\\[/etc\\]") "[${prefix}/etc]") (("\\[/sbin\\]") "[${prefix}/sbin]"))))))) (inputs (list (list util-linux "lib"))) (native-inputs (list autoconf automake libtool)) (home-page "https://nilfs.sourceforge.io/") (synopsis "Continuous Snapshotting Filesystem") (description "NILFS is a log-structured file system supporting versioning of the entire file system and continuous snapshotting, which allows users to even restore files mistakenly overwritten or destroyed just a few seconds ago.") (license license:gpl3+))) (define-public disorderfs (package (name "disorderfs") (version "0.5.11") (source (origin (method git-fetch) (uri (git-reference (url "https://salsa.debian.org/reproducible-builds/disorderfs.git") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1pnrj0h8sgqwgsc18vz3fkqsp6vhigdbi75vdj0si1r6wgslnr7z")))) (build-system gnu-build-system) (native-inputs (list pkg-config)) (inputs (list fuse-2 attr)) (arguments `(#:phases (modify-phases %standard-phases (delete 'configure)) ; no configure script #:make-flags (let ((out (assoc-ref %outputs "out"))) (list (string-append "PREFIX=" out))) #:test-target "test" ;; FIXME: Tests require 'run-parts' which is not in Guix yet. #:tests? #f)) (home-page "https://salsa.debian.org/reproducible-builds/disorderfs") (synopsis "FUSE file system that introduces non-determinism") (description "An overlay FUSE file system that introduces non-determinism into file system metadata. For example, it can randomize the order in which directory entries are read. This is useful for detecting non-determinism in the build process.") (license license:gpl3+))) (define-public glusterfs (package (name "glusterfs") (version "7.0") (source (origin (method url-fetch) (uri (string-append "https://download.gluster.org/pub/gluster/glusterfs/" (version-major version) "/" (version-major+minor version) "/" "glusterfs-" version ".tar.gz")) (sha256 (base32 "0yzhx710ypj0j3m5dcgmmgvkp7p0rmmp2p7ld0axrm4vpwc2b1wa")))) (build-system gnu-build-system) (arguments `(#:configure-flags (let ((out (assoc-ref %outputs "out")) (p2 (assoc-ref %build-inputs "python-2"))) (list (string-append "PYTHON=" p2 "/bin/python") (string-append "--with-initdir=" out "/etc/init.d") (string-append "--with-mountutildir=" out "/sbin") "--enable-cmocka" ; unit tests ;; "--enable-debug" ; debug build options ;; "--enable-asan" ; Address Sanitizer ;; "--enable-tsan" ; ThreadSanitizer )) #:phases (modify-phases %standard-phases (add-before 'configure 'autogen (lambda _ (invoke "./autogen.sh")))))) (native-inputs `(("pkg-config" ,pkg-config) ("libtirpc" ,libtirpc) ("rpcsvc-proto" ,rpcsvc-proto) ("python-2" ,python-2) ; must be version 2 ("flex" ,flex) ("bison" ,bison) ("libtool" ,libtool) ("autoconf" ,autoconf) ("automake" ,automake) ("cmocka" ,cmocka))) (inputs `(("acl" ,acl) ("fuse" ,fuse-2) ("openssl" ,openssl) ("liburcu" ,liburcu) ("libuuid" ,util-linux "lib") ("libxml2" ,libxml2) ("readline" ,readline) ("zlib" ,zlib) ("libaio" ,libaio) ("rdma-core" ,rdma-core))) (home-page "https://www.gluster.org") (synopsis "Distributed file system") (description "GlusterFS is a distributed scalable network file system suitable for data-intensive tasks such as cloud storage and media streaming. It allows rapid provisioning of additional storage based on your storage consumption needs. It incorporates automatic failover as a primary feature. All of this is accomplished without a centralized metadata server.") ;; The user may choose either LGPLv3+ or GPLv2 only. (license (list license:lgpl3+ license:gpl2+)))) (define-public curlftpfs (package (name "curlftpfs") (version "0.9.2") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/curlftpfs/curlftpfs/" version "/curlftpfs-" version ".tar.gz")) (sha256 (base32 "0n397hmv21jsr1j7zx3m21i7ryscdhkdsyqpvvns12q7qwwlgd2f")) (patches (search-patches "curlftpfs-fix-error-closing-file.patch" "curlftpfs-fix-file-names.patch" "curlftpfs-fix-memory-leak.patch" "curlftpfs-fix-no_verify_hostname.patch")))) (build-system gnu-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'fix-test (lambda _ ;; One of the 512-Byte block counts is definitely wrong. ;; See <https://sourceforge.net/p/curlftpfs/bugs/73/>. (substitute* "tests/ftpfs-ls_unittest.c" (("4426192") "12814800")) #t))))) (inputs (list curl glib fuse-2)) (native-inputs (list pkg-config)) (home-page "https://curlftpfs.sourceforge.net/") (synopsis "Mount remote file systems over FTP") (description "This is a file system client based on the FTP File Transfer Protocol.") (license license:gpl2+))) (define-public libeatmydata (package (name "libeatmydata") (version "131") ; also update the "debian-files" input if available (source (origin (method url-fetch) (uri (string-append "https://www.flamingspork.com/projects/libeatmydata/" "libeatmydata-" version ".tar.gz")) (sha256 (base32 "1i5bp9a2vmljci3ihzlxf8482106di2ayy1lpr0qb8rq472sh66g")))) (build-system gnu-build-system) (arguments ;; All tests pass---but only if the host kernel allows PTRACE_TRACEME. `(#:tests? #f #:configure-flags (list "--disable-static") #:phases (modify-phases %standard-phases (add-after 'unpack 'patch-file-names (lambda* (#:key inputs #:allow-other-keys) (substitute* (list "eatmydata.in" "eatmydata.sh.in") (("basename|readlink|uname" command) (search-input-file inputs (string-append "bin/" command)))))) (add-before 'patch-file-names 'tighten-symlink-mode ;; When the ‘eatmydata’ helper detects that it's a symlink, it will ;; transparently invoke the command of the same name. However, it's ;; *always* a link in Guix profiles and doesn't handle that well. ;; Patch it to treat its own $name specially. (lambda _ (substitute* "eatmydata.in" (("-L \"\\$0\"" match) (string-append match " ] && [ " "\"x$(basename \"$0\")\" != \"x$name\""))))) (add-after 'install 'install-debian-files (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((debian (assoc-ref inputs "debian-files")) (out (assoc-ref outputs "out")) (share (string-append out "/share"))) (invoke "tar" "xvf" debian) (with-directory-excursion "debian" (install-file "eatmydata.1" (string-append share "/man/man1")) (install-file "eatmydata.bash-completion" (string-append share "/bash-completion" "/completions"))))))))) (native-inputs `(("debian-files" ; for the man page ,(origin ;; Debian being what it is, its version can lag behind a bit. This ;; is tolerable as the man page is general and the command stable. (method url-fetch) (uri (string-append "https://deb.debian.org/debian/pool/main/" "libe/libeatmydata/libeatmydata_130-2" ".debian.tar.xz")) (sha256 (base32 "1sg9g1nv3wl9ymzz33ig4ns563npkbxj67a64m7p34cc813jl95w")))) ;; For the test suite. ("strace" ,strace) ("which" ,which))) (inputs (list coreutils)) (home-page "https://www.flamingspork.com/projects/libeatmydata/") (synopsis "Transparently ignore calls to synchronize data safely to disk") (description "Libeatmydata transparently disables most ways a program might force data to be written to the file system, such as @code{fsync()} or @code{open(O_SYNC)}. Such synchronisation calls provide important data integrity guarantees but are expensive to perform and can significantly slow down software that (over)uses them. This price is worth paying if you care about the files being modified---which is typically the case---or when manipulating important components of your system. Please, @emph{do not} use something called ``eat my data'' in such cases! However, it does not make sense to accept this performance hit if the data is unimportant and you can afford to lose all of it in the event of a crash, for example when running a software test suite. Adding @file{libeatmydata.so} to the @env{LD_PRELOAD} environment of such tasks will override all C library data synchronisation functions with custom @i{no-op} ones that do nothing and immediately return success. A simple @command{eatmydata} script is included that does this for you.") (license license:gpl3+))) (define-public libnfs (package (name "libnfs") (version "4.0.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/sahlberg/libnfs") (commit (string-append "libnfs-" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0i27wd4zvhjz7620q043p4d4mkx8zv2yz9adm1byin47dynahyda")))) (build-system gnu-build-system) (home-page "https://github.com/sahlberg/libnfs") (native-inputs (list autoconf automake libtool pkg-config)) (synopsis "Client library for accessing NFS shares") (description "LIBNFS is a client library for accessing NFS shares over a network. LIBNFS offers three different APIs, for different use : @enumerate @item RAW, a fully asynchronous low level RPC library for NFS protocols. This API provides very flexible and precise control of the RPC issued. @item NFS ASYNC, a fully asynchronous library for high level vfs functions @item NFS SYNC, a synchronous library for high level vfs functions. @end enumerate\n") (license (list license:lgpl2.1+ ; library license:gpl3+ ; tests license:bsd-3 ; copied nsf4 files )))) (define-public apfs-fuse (let ((commit "66b86bd525e8cb90f9012543be89b1f092b75cf3") (revision "2")) (package (name "apfs-fuse") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/sgan81/apfs-fuse") (recursive? #t) ; for lzfse (commit commit))) (sha256 (base32 "0f63slyzv8fbgshpzrx2g01x9h73g5yvh5kis4yazl19fjm2b05r")) (file-name (git-file-name name version)))) (build-system cmake-build-system) (arguments `(#:tests? #f ; No test suite #:phases (modify-phases %standard-phases ;; No 'install' target in CMakeLists.txt (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (bin (string-append out "/bin")) (lib (string-append out "/lib")) (doc (string-append out "/share/doc/" (string-append ,name "-" ,version)))) (install-file "apfs-dump" bin) (install-file "apfs-dump-quick" bin) (install-file "apfs-fuse" bin) (install-file "../source/README.md" doc))))))) (inputs (list bzip2 fuse zlib)) (synopsis "Read-only FUSE driver for the APFS file system") (description "APFS-FUSE is a read-only FUSE driver for the @dfn{Apple File System} (APFS). It is currently in an experimental state — it may not be able to read all files, and it does not support all the compression methods in APFS.") (home-page "https://github.com/sgan81/apfs-fuse") (license license:gpl2+)))) (define-public snapper (package (name "snapper") (version "0.10.7") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/openSUSE/snapper") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0nwmyzjwid1lf29dsr6w72dr781c81xyrjpk5y3scn4r55b5df0h")) (modules '((guix build utils))) (snippet '(begin (delete-file-recursively "dists") (delete-file-recursively "zypp-plugin") (substitute* '("configure.ac" "doc/Makefile.am") ((".*dists.*") "") ((".*zypp-plugin.*") "")) (substitute* "Makefile.am" (("zypp-plugin") "")))))) (build-system gnu-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'relative-file-locations (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out"))) (substitute* (list "scripts/Makefile.am" "data/Makefile.am") (("/usr/share") (string-append out "/share")) (("/usr/lib") (string-append out "/lib")) (("/etc/") (string-append out "/etc/")))) (substitute* "client/Makefile.am" (("/usr/lib") "@libdir@"))))))) (home-page "https://snapper.io") (native-inputs (list glibc-locales autoconf automake libtool pkg-config)) (inputs (list btrfs-progs e2fsprogs `(,util-linux "lib") linux-pam dbus libxml2 json-c acl boost ncurses/tinfo libxslt docbook-xsl gettext-minimal)) (synopsis "Manage Btrfs file system snapshots and allow roll-backs") (description "This package provides Snapper, a tool that helps with managing snapshots of Btrfs subvolumes and thin-provisioned LVM volumes. It can create and compare snapshots, revert differences between them, and supports automatic snapshots timelines.") (license license:gpl2))) (define-public xfstests ;; The last release (1.1.0) is from 2011. (let ((revision "3") (commit "8de535c53887bb49adae74a1b2e83e77d7e8457d")) (package (name "xfstests") (version (git-version "1.1.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "1sbkryl04xflrk6jb4fsl3h2whilj5m3vpdkpwwb26idp7ckjjv6")))) (build-system gnu-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-tool-locations (lambda* (#:key inputs #:allow-other-keys) (substitute* "common/config" ;; Make absolute file names relative. (("(MKFS_PROG=\").*(\")" _ pre post) (string-append pre "mkfs" post))) (for-each (lambda (file) (substitute* file (("( -s|#.|[= ])(/bin/sh|/bin/bash)" _ pre match) (string-append pre (search-input-file inputs match))) (("/bin/(rm|true)" match) (search-input-file inputs match)) (("/usr(/bin/time)" _ match) (search-input-file inputs match)))) (append (find-files "common" ".*") (find-files "tests" ".*") (find-files "tools" ".*") (find-files "src" "\\.(c|sh)$"))))) (replace 'bootstrap (lambda* (#:key make-flags #:allow-other-keys) (substitute* "Makefile" ;; Avoid a mysterious (to me) ‘permission denied’ error. (("cp ") "cp -f ")) (substitute* "m4/package_utilies.m4" ;; Fix the bogus hard-coded paths for every single binary. (("(AC_PATH_PROG\\(.*, ).*(\\))" _ pre post) (string-append pre (getenv "PATH") post))) (apply invoke "make" "configure" make-flags))) (add-after 'install 'wrap-xfstests/check ;; Keep wrapping distinct from 'create-helper-script below: users ;; must be able to invoke xfstests/check directly if they prefer. (lambda* (#:key inputs #:allow-other-keys) (wrap-program (string-append #$output "/xfstests/check") ;; Prefix the user's PATH with the minimum required tools. ;; The suite has many other optional dependencies and will ;; automatically select tests based on the original PATH. `("PATH" ":" prefix ,(map (lambda (file) (dirname (search-input-file inputs file))) (list "bin/setfacl" ; acl "bin/attr" ; attr "bin/bc" ; bc "bin/df" ; coreutils "bin/hostname" ; inetutils "bin/perl" ; perl "sbin/mkfs.xfs")))))) ; xfsprogs (add-after 'install 'create-helper ;; Upstream installs only a ‘check’ script that's not in $PATH and ;; would try to write to the store without explaining how to change ;; that. Install a simple helper script to make it discoverable. (lambda* (#:key inputs #:allow-other-keys) (let* ((check (string-append #$output "/xfstests/check")) (bin (string-append #$output "/bin")) (helper (string-append bin "/xfstests-check"))) (mkdir-p bin) (with-output-to-file helper (lambda _ (format #t "#!~a --no-auto-compile\n!#\n" (search-input-file inputs "/bin/guile")) (write `(begin (define (try proc dir) "Try to PROC DIR. Return DIR on success, else #f." (with-exception-handler (const #f) (lambda _ (proc dir) dir) #:unwind? #t)) (define args (cdr (command-line))) (when (or (member "--help" args) (member "-h" args)) (format #t "Usage: ~a [OPTION]... This Guix helper sets up a new writable RESULT_BASE if it's unset, then executes xfstest's \"~a\" command (with any OPTIONs) as documented below.\n\n" ,(basename helper) ,(basename check))) (let* ((gotenv-base (getenv "RESULT_BASE")) (base (or gotenv-base (let loop ((count 0)) (or (try mkdir (format #f "xfstests.~a" count)) (loop (+ 1 count)))))) (result-base (if (string-prefix? "/" base) base (string-append (getcwd) "/" base)))) (setenv "RESULT_BASE" result-base) ;; CHECK must run in its own directory or will fail. (chdir ,(dirname check)) (let ((status (status:exit-val (apply system* ,check args)))) (unless gotenv-base (try rmdir result-base)) status)))))) (chmod helper #o755))))))) (native-inputs (list autoconf automake libtool)) (inputs (list acl attr bash-minimal bc guile-3.0 ; for our xfstests-check helper script inetutils `(,util-linux "lib") perl time xfsprogs)) (home-page "https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git") (synopsis "File system @acronym{QA, Quality Assurance} test suite") (description "The @acronym{FSQA, File System Quality Assurance} regression test suite, more commonly known as xfstests, comprises over 1,500 tests that exercise (@dfn{torture}) both the user- and kernel-space parts of many different file systems. As the package's name subtly implies, it was originally developed to test the XFS file system. Today, xfstests is the primary test suite for all major file systems supported by the kernel Linux including XFS, ext4, and Btrfs, but also virtual and network file systems such as NFS, 9P, and the overlay file system. The packaged @command{check} script is not in @env{PATH} but can be invoked with the included @command{xfstests-check} helper.") (license license:gpl2)))) (define-public zfs (package (name "zfs") (version "2.2.7") (outputs '("out" "module" "src")) (source (origin (method url-fetch) (uri (string-append "https://github.com/openzfs/zfs/releases" "/download/zfs-" version "/zfs-" version ".tar.gz")) (sha256 (base32 "0wkniyfjmbvyyfqv35fhbdx58qk7rck3f91j05x419pjmfzy7f5j")))) (build-system linux-module-build-system) (arguments (list ;; The ZFS kernel module should not be downloaded since the license ;; terms don't allow for distributing it, only building it locally. #:substitutable? #f ;; Tests cannot run in an unprivileged build environment. #:tests? #f #:phases #~(modify-phases %standard-phases (add-after 'configure 'really-configure (lambda* (#:key inputs #:allow-other-keys) (substitute* "configure" (("-/bin/sh") (string-append "-" (which "sh")))) (invoke "./configure" "--with-config=all" (string-append "--prefix=" #$output) (string-append "--with-dracutdir=" #$output "/lib/dracut") (string-append "--with-udevdir=" #$output "/lib/udev") (string-append "--with-mounthelperdir=" #$output "/sbin") (string-append "--with-linux=" (search-input-directory inputs "lib/modules/build"))))) (add-after 'unpack 'patch-source (lambda* (#:key inputs #:allow-other-keys) ;; New feature "compatibility=" in 2.1.0. ;; This feature looks up in two locations: ;; /etc/zfs/compatibility.d/ ;; /usr/share/zfs/compatibility.d/ ;; The first is intended for system-specific compatibility ;; sets, while the second is what is installed with the ;; OpenZFS package, so use the absolute path for the first ;; (which requires patching in the file) and the store path ;; for the second (which it gets by default). (substitute* "include/sys/fs/zfs.h" (("#define\tZPOOL_SYSCONF_COMPAT_D.*$") ;; Use absolute path. "#define\tZPOOL_SYSCONF_COMPAT_D\t\"/etc/zfs/compatibility.d\"\n")) ;; Also update the manual, which uses absolute paths, so that ;; /usr/share/zfs/compatibility.d/ is referred via the store. (substitute* '("man/man7/zpoolprops.7" "man/man7/zpool-features.7") (("/usr/share/zfs/compatibility.d") (string-append #$output "/share/zfs/compatibility.d"))) (substitute* "lib/libzfs/os/linux/libzfs_util_os.c" ;; Use path to /gnu/store/*-kmod in actual path that is ;; exec'ed. (("\"/sbin/modprobe\"") (string-append "\"" (search-input-file inputs "/bin/modprobe") "\"")) ;; Just use 'modprobe' in message to user, since Guix ;; does not have a traditional /sbin/ (("'/sbin/modprobe ") "'modprobe ")) (substitute* "configure" (("/etc/default") (string-append #$output "/etc/default")) (("/etc/bash_completion.d") (string-append #$output "/etc/bash_completion.d"))) (substitute* "Makefile.in" (("/usr/share/initramfs-tools") (string-append #$output "/usr/share/initramfs-tools"))) (substitute* "contrib/initramfs/Makefile.am" (("/usr/share/initramfs-tools") (string-append #$output "/usr/share/initramfs-tools"))) (substitute* "module/os/linux/zfs/zfs_ctldir.c" (("/usr/bin/env\", \"umount") (string-append (search-input-file inputs "/bin/umount") "\", \"-n")) (("/usr/bin/env\", \"mount") (string-append (search-input-file inputs "/bin/mount") "\", \"-n"))) (substitute* "lib/libzfs/os/linux/libzfs_mount_os.c" (("/bin/mount") (search-input-file inputs "/bin/mount")) (("/bin/umount") (search-input-file inputs "/bin/umount"))) (substitute* "lib/libshare/os/linux/nfs.c" (("/usr/sbin/exportfs") (search-input-file inputs "/sbin/exportfs"))) (substitute* "config/zfs-build.m4" (("\\$sysconfdir/init.d") (string-append #$output "/etc/init.d"))) (substitute* '("cmd/zed/Makefile.am") (("\\$\\(sysconfdir)") (string-append #$output "/etc"))) (substitute* "udev/vdev_id" (("PATH=/bin:/sbin:/usr/bin:/usr/sbin") (string-append "PATH=" (dirname (which "chmod")) ":" (dirname (which "grep")) ":" (dirname (which "sed")) ":" (dirname (which "gawk"))))) (substitute* '("Makefile.am" "Makefile.in") (("\\$\\(prefix)/src") (string-append #$output:src "/src"))) (substitute* (find-files "udev/rules.d/" ".rules.in$") (("/sbin/modprobe") (search-input-file inputs "/bin/modprobe"))))) (replace 'build (lambda _ (invoke "make"))) (replace 'install (lambda* (#:key inputs native-inputs #:allow-other-keys) (let* ((kmod (assoc-ref (or native-inputs inputs) "kmod"))) (invoke "make" "install" (string-append "DEFAULT_INITCONF_DIR=" #$output "/etc/default") (string-append "DEPMOD=" (search-input-file (or native-inputs inputs) "/bin/depmod")) (string-append "INSTALL_PATH=" #$output) (string-append "INSTALL_MOD_PATH=" #$output:module) "INSTALL_MOD_STRIP=1") (install-file "contrib/bash_completion.d/zfs" (string-append #$output "/share/bash-completion/completions")))))))) (native-inputs (list attr kmod pkg-config)) (inputs (list eudev kmod libaio libtirpc nfs-utils openssl python python-cffi util-linux `(,util-linux "lib") zlib)) (home-page "https://zfsonlinux.org/") (synopsis "OpenZFS on Linux") (description "OpenZFS is an advanced file system and volume manager which was originally developed for Solaris and is now maintained by the OpenZFS community.") (license license:cddl1.0))) (define-public zfs-auto-snapshot (package (name "zfs-auto-snapshot") (version "1.2.4") (source (origin (method git-fetch) (uri (git-reference (url (string-append "https://github.com/zfsonlinux/" name)) (commit (string-append "upstream/" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0m4xw7h5qlbn5zdf9wb137pcr5l7hyrr7w2dgr16dfm5ay64vvfq")))) (build-system gnu-build-system) (inputs ;; Note: if you are inheriting from the above zfs package in order ;; to provide a specific stable kernel version, you should also ;; inherit this package and replace the sole input below. (list zfs)) (arguments `(#:tests? #f ; No tests #:phases (modify-phases %standard-phases (delete 'configure) (delete 'build) ;; Guix System may not have a traditional cron system, but ;; the cron scripts installed by this package are convenient ;; to use as targets for an mcron job specification, so make ;; sure they can be run in-store. (add-before 'install 'fix-scripts (lambda* (#:key outputs inputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (zfs-auto-snapshot (string-append out "/sbin/zfs-auto-snapshot")) (zfs-package (assoc-ref inputs "zfs")) (zpool (string-append zfs-package "/sbin/zpool")) (zfs (string-append zfs-package "/sbin/zfs"))) (substitute* '("etc/zfs-auto-snapshot.cron.daily" "etc/zfs-auto-snapshot.cron.frequent" "etc/zfs-auto-snapshot.cron.hourly" "etc/zfs-auto-snapshot.cron.monthly" "etc/zfs-auto-snapshot.cron.weekly") (("zfs-auto-snapshot") zfs-auto-snapshot)) (substitute* "src/zfs-auto-snapshot.sh" (("LC_ALL=C zfs list") (string-append "LC_ALL=C " zfs " list")) (("LC_ALL=C zpool status") (string-append "LC_ALL=C " zpool " status")) (("zfs snapshot") (string-append zfs " snapshot")) (("zfs destroy") (string-append zfs " destroy")))))) ;; Provide DESTDIR and PREFIX on make command. (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (invoke "make" "install" "PREFIX=" (string-append "DESTDIR=" out))) #t))))) (home-page "https://github.com/zfsonlinux/zfs-auto-snapshot") (synopsis "Automatically create, rotate and destroy ZFS snapshots") (description "An alternative implementation of the zfs-auto-snapshot service for Linux that is compatible with zfs-linux (now OpenZFS) and zfs-fuse. On Guix System, you will need to invoke the included shell scripts as @code{job} definitions in your @code{operating-system} declaration.") (license license:gpl2+))) (define-public mergerfs (package (name "mergerfs") (version "2.33.5") (source (origin (method url-fetch) (uri (string-append "https://github.com/trapexit/mergerfs/" "releases/download/" version "/" "mergerfs-" version ".tar.gz")) (sha256 (base32 "0m0fg191ax855yb20vqpvn6v2gc3i5xdizx09pgpymj1ybxc7yyw")))) (build-system gnu-build-system) (arguments `(#:make-flags (list (string-append "CC=" ,(cc-for-target)) (string-append "CXX=" ,(cxx-for-target)) (string-append "PREFIX=" (assoc-ref %outputs "out"))) #:tests? #f ; all require a kernel with FUSE loaded #:phases (modify-phases %standard-phases (delete 'configure) ; no configure script (add-after 'unpack 'set-file-names (lambda* (#:key inputs outputs #:allow-other-keys) (substitute* "libfuse/Makefile" (("/sbin") "$(EXEC_PREFIX)/sbin") (("chown") "true") ; disallowed in the build environment (("strip") "true")) ; breaks cross-compilation ;; These were copied from the fuse-2 package. (substitute* '("libfuse/lib/mount_util.c" "libfuse/util/mount_util.c") (("/bin/(u?)mount" _ maybe-u) (search-input-file inputs (string-append "bin/" maybe-u "mount")))) (substitute* '("libfuse/util/mount.mergerfs.c") (("/bin/sh" command) (string-append (assoc-ref inputs "bash-minimal") command)) ;; mount.mergerfs tries to execute `mergerfs`, which cannot be found ;; without an absolute path. Hard-coding the path is fine, since we don’t ;; link mount.mergerfs to mount.fuse anyway. (("add_arg\\(&command, type\\);") (string-append "add_arg(&command, \"" (assoc-ref outputs "out") "/bin/mergerfs\");")))))))) ;; Mergerfs bundles a heavily modified copy of fuse. (inputs (list bash-minimal util-linux)) (home-page "https://github.com/trapexit/mergerfs") (synopsis "Featureful union file system") (description "mergerfs is a union file system geared towards simplifying storage and management of files across numerous commodity storage devices. It is similar to mhddfs, unionfs, and aufs.") (license (list license:isc ; mergerfs license:gpl2 license:lgpl2.0 ; Imported libfuse code. )))) (define-public mergerfs-tools (let ((commit "3b6fe008517aeda715c306eaf4914f6f537da88d") (revision "3")) (package (name "mergerfs-tools") ;; No released version exists. (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/trapexit/mergerfs-tools") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "15pgym6c4viy57ccgp28dnqwh12f3gr02axg86y578aqa2yaa0ad")))) (build-system copy-build-system) (inputs (list python python-xattr rsync)) (arguments '(#:install-plan '(("src/" "bin/")) #:phases (modify-phases %standard-phases (add-after 'unpack 'patch-paths (lambda* (#:key inputs #:allow-other-keys) (substitute* (find-files "src" "^mergerfs\\.") (("'rsync'") (string-append "'" (assoc-ref inputs "rsync") "/bin/rsync'")) (("'rm'") (string-append "'" (assoc-ref inputs "coreutils") "/bin/rm'"))) (substitute* "src/mergerfs.mktrash" (("xattr") (search-input-file inputs "/bin/xattr")) (("mkdir") (search-input-file inputs "/bin/mkdir")))))))) (synopsis "Tools to help manage data in a mergerfs pool") (description "mergerfs-tools is a suite of programs that can audit permissions and ownership of files and directories on a mergerfs volume, duplicates files and directories across branches in its pool, find and remove duplicate files, balance pool drives, consolidate files in a single mergerfs directory onto a single drive and create FreeDesktop.org Trash specification compatible directories.") (home-page "https://github.com/trapexit/mergerfs-tools") (license license:isc)))) (define-public python-dropbox (package (name "python-dropbox") (version "11.36.2") (source (origin (method url-fetch) (uri (pypi-uri "dropbox" version)) (sha256 (base32 "00650gk8557x3f38nd8a1mdby7v1l8l4l72aq48qpiw6shb3v3fl")) (snippet '(begin (use-modules (guix build utils)) (substitute* "setup.py" (("pytest-runner == 5\\.2\\.0") "pytest-runner")))))) (build-system python-build-system) (arguments '(#:tests? #f)) ; Tests require a network connection. (native-inputs (list python-pytest python-pytest-runner)) (propagated-inputs (list python-requests python-six python-stone)) (home-page "https://www.dropbox.com/developers") (synopsis "Official Dropbox API Client") (description "This package provides a Python SDK for integrating with the Dropbox API v2.") (license license:expat))) (define-public dbxfs (package (name "dbxfs") (version "1.0.63") (source (origin ;; Release tarball contains files not in git repository. (method git-fetch) (uri (git-reference (url "https://thelig.ht/code/dbxfs") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1vzfhw3z2r0rb6s0qdzirh3pl7rv1z8xmxa0z5h7h1wqhpl05ai7")) (patches (search-patches "dbxfs-remove-sentry-sdk.patch")) (snippet #~(begin (use-modules (guix build utils)) ;; Don't check for package updates. (substitute* "dbxfs/main.py" (("if version") "if False")))))) (build-system python-build-system) (arguments '(#:tests? #f)) ; tests requires safefs (propagated-inputs (list python-appdirs python-block-tracing python-dropbox python-keyring python-keyrings.alt python-privy python-userspacefs)) (home-page "https://thelig.ht/code/dbxfs/") (synopsis "User-space file system for Dropbox") (description "@code{dbxfs} allows you to mount your Dropbox folder as if it were a local file system using FUSE.") (license license:gpl3+))) (define-public go-github-com-hanwen-fuse (package (name "go-github-com-hanwen-fuse") (version "2.0.3") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/hanwen/go-fuse") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1y44d08fxyis99s6jxdr6dbbw5kv3wb8lkhq3xmr886i4w41lz03")))) (build-system go-build-system) (arguments `(#:import-path "github.com/hanwen/go-fuse")) (propagated-inputs (list go-golang-org-x-sys)) (home-page "https://github.com/hanwen/go-fuse") (synopsis "FUSE bindings for Go") (description "This package provides Go native bindings for the FUSE kernel module.") (license license:bsd-3))) (define-public rewritefs (let ((revision "1") (commit "3a56de8b5a2d44968b8bc3885c7d661d46367306")) (package (name "rewritefs") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/sloonz/rewritefs") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "1w2rik0lhqm3wr68x51zs45gqfx79l7fi4p0sqznlfq7sz5s8xxn")))) (build-system gnu-build-system) (arguments (list #:modules '((guix build gnu-build-system) (guix build utils) (srfi srfi-26)) #:make-flags #~(list (string-append "PREFIX=" #$output)) #:test-target "test" #:tests? #f ; all require a kernel with FUSE loaded #:phases #~(modify-phases %standard-phases (delete 'configure) ; no configure script (add-after 'install 'install-examples (lambda _ (let ((doc (string-append #$output "/share/doc/" #$name "-" #$version))) (for-each (cut install-file <> (string-append doc "/examples")) (find-files "." "^config\\.")))))))) (native-inputs (list pkg-config)) (inputs (list fuse pcre)) (home-page "https://github.com/sloonz/rewritefs") (synopsis "FUSE file system that changes particular file names") (description "RewriteFS is a @acronym{FUSE, File system in USEr space} to change the name of accessed files on the fly based on any number of regular expressions. It's like the @code{rewrite} action of many Web servers, but for your file system. For example, it can help keep your home directory tidy by transparently rewriting the location of configuration files of software that doesn't follow the XDG directory specification from @file{~/.@var{name}} to @file{~/.config/@var{name}}.") (license license:gpl2+)))) (define-public squashfuse (package (name "squashfuse") (version "0.1.105") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/vasi/squashfuse") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "03aw8pw8694jyrzpnbry05rk9718sqw66kiyq878bbb679gl7224")))) (build-system gnu-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-cross-compile (lambda _ (substitute* "autogen.sh" (("pkg-config") #$(pkg-config-for-target)))))))) (native-inputs (list autoconf automake libtool pkg-config)) (inputs (list attr fuse-2 xz zlib `(,zstd "lib"))) (home-page "https://github.com/vasi/squashfuse") (synopsis "Fuse filesystem to mount squashfs archives") (description "Squashfuse lets you mount SquashFS archives in user-space. It supports almost all features of the SquashFS format, yet is still fast and memory-efficient.") (license license:bsd-2))) (define-public squashfuse-for-appimage (package (inherit squashfuse) (arguments (cons* #:configure-flags #~'("CFLAGS=-ffunction-sections -fdata-sections -Os -no-pie" "LDFLAGS=-static") (substitute-keyword-arguments (package-arguments squashfuse) ((#:phases phases) #~(modify-phases #$phases (add-after 'install 'install-private-headers (lambda _ (install-file "fuseprivate.h" (string-append #$output "/include/squashfuse/"))))))))) (inputs (list fuse-for-appimage `(,zstd "lib") `(,zstd "static") `(,zlib "out") `(,zlib "static"))))) (define-public tmsu (package (name "tmsu") (version "0.7.5") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/oniony/TMSU") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0834hah7p6ad81w60ifnxyh9zn09ddfgrll04kwjxwp7ypbv38wq")))) (build-system go-build-system) (arguments (list #:import-path "github.com/oniony/TMSU" #:unpack-path "github.com/oniony/TMSU" #:install-source? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'adjust-makefile (lambda* (#:key import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) (substitute* "Makefile" (("SHELL=.*") (string-append "SHELL=" (which "sh") "\n")) ;; Make sure we do not compile 2 more times during the check ;; phase. (("unit-test: compile") "unit-test:") (("integration-test: compile") "integration-test:") ;; Simplify install path. (("usr/") ""))))) (replace 'build (lambda* (#:key import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) (invoke "make" "compile")))) (replace 'check (lambda* (#:key import-path tests? #:allow-other-keys) (when tests? (with-directory-excursion (string-append "src/" import-path) ;; Remove shaky test file, see ;; <https://github.com/oniony/TMSU/issues/281>. (for-each (lambda (test-file) (delete-file test-file)) (find-files "." "^fingerprinter_test.go$")) (invoke "make" "test"))))) (replace 'install (lambda* (#:key import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) (setenv "DESTDIR" #$output) (invoke "make" "install"))))))) (inputs (list go-github-com-mattn-go-sqlite3 go-github-com-hanwen-fuse)) (home-page "https://github.com/oniony/TMSU") (synopsis "Tag files and access them through a virtual file system") (description "TMSU is a tool for tagging your files. It provides a simple command-line utility for applying tags and a virtual file system to give you a tag-based view of your files from any other program. TMSU does not alter your files in any way: they remain unchanged on disk, or on the network, wherever your put them. TMSU maintains its own database and you simply gain an additional view, which you can mount where you like, based upon the tags you set up.") (license license:gpl3+))) (define-public udftools (package (name "udftools") (version "2.3") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/pali/udftools") (commit version))) (sha256 (base32 "1nl2s61znyzaap23zhbdg3znj6l6akr313fchn5wwvjzj8k70is9")) (file-name (git-file-name name version)))) (build-system gnu-build-system) (arguments `(#:configure-flags (list (string-append "--docdir=" (assoc-ref %outputs "out") "/share/doc/" ,name "-" ,version)))) (native-inputs (list automake autoconf libtool pkg-config)) (home-page "https://github.com/pali/udftools") (synopsis "Tools to manage UDF file systems and DVD/CD-R(W) drives") (description "@code{udftools} is a set of programs for reading and modifying @acronym{UDF, Universal Disk Format} file systems. @acronym{UDF, Universal Disk Format} is a file system mostly used for DVDs and other optical media. It supports read-only media (DVD/CD-R) and rewritable media that wears out (DVD/CD-RW).") (license license:gpl2+))) (define-public fuse-overlayfs (package (name "fuse-overlayfs") (version "1.13") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/containers/fuse-overlayfs") (commit (string-append "v" version)))) (sha256 (base32 "03gqb4czswqhx6zrv9jj88mf3mczk4m7azcjgr785c2lmga442ly")) (file-name (git-file-name name version)))) (build-system gnu-build-system) (native-inputs (list automake autoconf libtool pkg-config)) (inputs (list fuse)) (home-page "https://github.com/containers/fuse-overlayfs") (synopsis "FUSE implementation of overlayfs") (description "This package provides an implementation of overlay+shiftfs in FUSE for rootless containers.") (license license:gpl3))) (define-public bees (package (name "bees") (version "0.10") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/Zygo/bees") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (modules '((guix build utils))) (snippet ;; Unbundle cityhash. #~(begin (for-each delete-file '("lib/city.cc" "include/crucible/city.h")) (substitute* "lib/Makefile" (("city.o.*") "")) (substitute* "src/bees-hash.cc" (("#include .crucible/city.h.") "#include <city.h>")))) (sha256 (base32 "1j1v9bxijs8gvrb7rg0q1158xjvmfc8dlzwx768fxf3w8w2gfwvz")))) (build-system gnu-build-system) (arguments (list #:test-target "test" #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) (string-append "DESTDIR=" #$output) (string-append "BEES_VERSION=" #$version) "PREFIX=''") #:phases #~(modify-phases %standard-phases (delete 'configure) (add-after 'unpack 'fixpath (lambda* (#:key inputs #:allow-other-keys) (substitute* "scripts/beesd.in" (((string-append "\\<(" (string-join (list "realpath" "uuidparse" "grep" "false" "sed" "true" "head" "mkdir" "mount" "touch" "du" "cut" "rm" "truncate" "chmod") "|") ")\\>") command) (search-input-file inputs (string-append "/bin/" command))) (("btrfs sub") (string-append (search-input-file inputs "/bin/btrfs") " sub")))))))) (inputs (list btrfs-progs cityhash util-linux)) (home-page "https://github.com/Zygo/bees") (synopsis "Deduplication agent for btrfs file systems") (description "@acronym{BEES, Best-Effort Extent-Same} is a block-oriented, user-space deduplication agent designed for large btrfs file systems. It combines off-line data deduplication with incremental scanning to minimize the time your data spend on disk between being written and being deduplicated.") (license (list license:gpl3+ ; the combined work license:zlib ; lib/crc64.cc license:gpl2)))) ; include/crucible/btrfs.h (define-public dwarfs (package (name "dwarfs") (version "0.6.2") (source (origin (method url-fetch) ;; The release archive is needed so that version.h is included. (uri (string-append "https://github.com/mhx/dwarfs/releases/download/v" version "/dwarfs-" version ".tar.xz")) (sha256 (base32 "1kncxf85gsj3anck8ccjmxn2azp5ifqbgkiky2kharmvphkbmfcv")) (snippet #~(begin (use-modules (guix build utils)) ;; Prefer system libraries instead of submodules. ;; TODO: Package fbthrift. ;; TODO: Can we use Guix own folly? There is no CMake option for it. ;; TODO: Package parallel-hashmap. (for-each delete-file-recursively '(;; "fbthrift" ;; "folly" ;; "parallel-hashmap" "xxHash" "zstd")))))) (build-system cmake-build-system) (arguments '(#:tests? #f ; TODO: 1 test fails because 'modprobe fuse' needs privileged access. #:configure-flags (list "-DPREFER_SYSTEM_ZSTD=ON" "-DPREFER_SYSTEM_XXHASH=ON" "-DPREFER_SYSTEM_GTEST=ON" "-DWITH_TESTS=ON" ;; Disable man pages since ronn fails to run without hpricot. "-DWITH_MAN_PAGES=OFF"))) (native-inputs (list ;; FIXME: Building with ronn fails because hpricot is missing from Guix. folly googletest libdwarf libevent pkg-config)) (inputs (list boost double-conversion fmt fuse gflags jemalloc libarchive libunwind lz4 openssl xxhash xz `(,zstd "lib"))) (home-page "https://github.com/mhx/dwarfs") (synopsis "Fast high compression read-only file system") (description "DwarFS is a read-only file system with a focus on achieving very high compression ratios in particular for very redundant data. DwarFS also doesn't compromise on speed and for some cases it is on par with or performs better than SquashFS. For the primary use case, DwarFS compression is an order of magnitude better than SquashFS compression, it's 6 times faster to build the file system, it's typically faster to access files on DwarFS and it uses less CPU resources. Distinct features of DwarFS are: @itemize @item Clustering of files by similarity using a similarity hash function. This makes it easier to exploit the redundancy across file boundaries. @item Segmentation analysis across file system blocks in order to reduce the size of the uncompressed file system. This saves memory when using the compressed file system and thus potentially allows for higher cache hit rates as more data can be kept in the cache. @item Highly multi-threaded implementation. Both the file system creation tool as well as the FUSE driver are able to make good use of the many cores of your system. @item Optional experimental Python scripting support to provide custom filtering and ordering functionality. @end itemize\n") (license license:gpl3))) (define-public sirikali (package (name "sirikali") (version "1.5.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/mhogomchungu/sirikali") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1l52s8rxkfcxcx3s2fnsh08wy6hhjjvp7gcggdi84aqc4dq3rdnm")))) (build-system cmake-build-system) (arguments '(#:tests? #f ;No tests #:configure-flags '("-DQT5=true"))) (inputs (list xdg-utils libpwquality libgcrypt libsecret qtbase-5)) (native-inputs (list pkg-config)) (home-page "https://mhogomchungu.github.io/sirikali/") (synopsis "Graphical program for managing encrypted file-systems") (description "@dfn{SiriKali} is a Qt / C++ @acronym{GUI, graphical user interface} application that manages ecryptfs, cryfs, encfs, gocryptfs, fscrypt and securefs based encrypted folders.") (license license:gpl2+)))