1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
3 ;;; Copyright © 2017 Gábor Boskovits <boskovits@gmail.com>
4 ;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
5 ;;; Copyright © 2018 Leo Famulari <leo@famulari.name>
6 ;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
9 ;;; This file is part of GNU Guix.
11 ;;; GNU Guix is free software; you can redistribute it and/or modify it
12 ;;; under the terms of the GNU General Public License as published by
13 ;;; the Free Software Foundation; either version 3 of the License, or (at
14 ;;; your option) any later version.
16 ;;; GNU Guix is distributed in the hope that it will be useful, but
17 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;;; GNU General Public License for more details.
21 ;;; You should have received a copy of the GNU General Public License
22 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24 (define-module (gnu packages file-systems)
25 #:use-module ((guix licenses) #:prefix license:)
26 #:use-module (guix packages)
27 #:use-module (guix download)
28 #:use-module (guix git-download)
29 #:use-module (guix build-system cmake)
30 #:use-module (guix build-system copy)
31 #:use-module (guix build-system gnu)
32 #:use-module (guix build-system linux-module)
33 #:use-module (guix build-system trivial)
34 #:use-module (guix utils)
35 #:use-module (gnu packages)
36 #:use-module (gnu packages acl)
37 #:use-module (gnu packages attr)
38 #:use-module (gnu packages autotools)
39 #:use-module (gnu packages bison)
40 #:use-module (gnu packages check)
41 #:use-module (gnu packages compression)
42 #:use-module (gnu packages crypto)
43 #:use-module (gnu packages curl)
44 #:use-module (gnu packages datastructures)
45 #:use-module (gnu packages documentation)
46 #:use-module (gnu packages docbook)
47 #:use-module (gnu packages flex)
48 #:use-module (gnu packages glib)
49 #:use-module (gnu packages gnupg)
50 #:use-module (gnu packages libffi)
51 #:use-module (gnu packages linux)
52 #:use-module (gnu packages nfs)
53 #:use-module (gnu packages onc-rpc)
54 #:use-module (gnu packages photo)
55 #:use-module (gnu packages pkg-config)
56 #:use-module (gnu packages python)
57 #:use-module (gnu packages python-xyz)
58 #:use-module (gnu packages readline)
59 #:use-module (gnu packages rsync)
60 #:use-module (gnu packages sqlite)
61 #:use-module (gnu packages tls)
62 #:use-module (gnu packages valgrind)
63 #:use-module (gnu packages xml))
65 (define-public fsarchiver
74 (url "https://github.com/fdupoux/fsarchiver.git")
76 (file-name (git-file-name name version))
78 (base32 "1rvwq5v3rl14bqxjm1ibfapyicf0sa44nw7451v10kx39lp56ylp"))))
79 (build-system gnu-build-system)
81 `(("autoconf" ,autoconf)
82 ("automake" ,automake)
83 ("pkg-config" ,pkg-config)))
86 ("e2fsprogs" ,e2fsprogs)
87 ("libgcrypt" ,libgcrypt)
90 ("util-linux" ,util-linux "lib")
93 ("zstd:lib" ,zstd "lib")))
94 (synopsis "File system back-up, deployment, and migration tool")
96 "FSArchiver saves the contents of a file system to a compressed archive
97 file, and restores it to a different file system and/or partition. This
98 partition can be of a different size than the original and FSArchiver will
99 create a new file system if none exists.
101 All standard file attributes supported by the kernel are preserved, including
102 file permissions, timestamps, symbolic and hard links, and extended attributes.
104 Each file in the archive is protected by a checksum. If part of the archive
105 is corrupted you'll lose the affected file(s) but not the whole back-up.")
106 (home-page "https://www.fsarchiver.org/")
107 (license license:gpl2)))
109 (define-public gphotofs
117 (string-append "mirror://sourceforge/gphoto/gphotofs/" version
118 "/gphotofs-0.5.tar.gz"))
121 "04slwhr6ap9xcc27wphk22ad8yn79ngyy5z10lxams3k5liahvc2"))))
122 (build-system gnu-build-system)
124 `(("pkg-config" ,pkg-config)))
128 ("libgphoto2" ,libgphoto2)))
129 (synopsis "Virtual filesystem for libgphoto2 using FUSE")
130 (description "GPhotoFS is a FUSE filesystem module to mount your camera as
131 a filesystem on Linux. This allow using your camera with any tool able to read
132 from a mounted filesystem.")
133 (home-page "http://www.gphoto.org/proj/gphotofs/")
134 (license license:gpl2+)))
136 (define-public bcachefs-tools
137 (let ((commit "ab2f1ec24f5307b0cf1e3c4ad19bf350d9f54d9f")
140 (name "bcachefs-tools")
141 (version (git-version "0.1" revision commit))
146 (url "https://evilpiepirate.org/git/bcachefs-tools.git")
148 (file-name (git-file-name name version))
150 (base32 "10pafvaxg1lvwnqjv3a4rsi96bghbpcsgh3vhqilndi334k3b0hd"))))
151 (build-system gnu-build-system)
154 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
155 "INITRAMFS_DIR=$(PREFIX)/share/initramfs-tools"
159 (modify-phases %standard-phases
160 (delete 'configure)) ; no configure script
161 #:tests? #f)) ; XXX 6 valgrind tests fail
163 `(("pkg-config" ,pkg-config)
166 ("python-pytest" ,python-pytest)
167 ("valgrind" ,valgrind)))
169 `(("keyutils" ,keyutils)
171 ("libscrypt" ,libscrypt)
172 ("libsodium" ,libsodium)
174 ("util-linux" ,util-linux "lib") ; lib{blkid,uuid}
177 ("zstd:lib" ,zstd "lib")))
178 (home-page "https://bcachefs.org/")
179 (synopsis "Tools to create and manage bcachefs file systems")
181 "The bcachefs-tools are command-line utilities for creating, checking,
182 and otherwise managing bcachefs file systems.
184 Bcachefs is a @acronym{CoW, copy-on-write} file system supporting native
185 encryption, compression, snapshots, and (meta)data checksums. It can use
186 multiple block devices for replication and/or performance, similar to RAID.
188 In addition, bcachefs provides all the functionality of bcache, a block-layer
189 caching system, and lets you assign different roles to each device based on its
190 performance and other characteristics.")
191 (license license:gpl2+))))
193 (define-public exfatprogs
201 (url "https://github.com/exfatprogs/exfatprogs")
203 (file-name (git-file-name name version))
206 "1s47qvhr702z5c19wfqz8cwl9ammmincs7a8vjc6p974wnnjg77y"))))
207 (build-system gnu-build-system)
210 (list "--disable-static")))
212 `(("autoconf" ,autoconf)
213 ("automake" ,automake)
215 ("pkg-config" ,pkg-config)))
216 (home-page "https://github.com/exfatprogs/exfatprogs")
217 (synopsis "Tools to create, check, and repair exFAT file systems")
219 "These are command-line user space tools for the @acronym{exFAT,
220 Extensible File Allocation Table} file systems. Included are
221 @command{mkfs.exfat} to create (format) new exFAT file systems, and
222 @command{fsck.exfat} to check their consistency and repair them.")
223 (license license:gpl2+)))
225 (define-public httpfs2
232 (uri (string-append "mirror://sourceforge/httpfs/httpfs2/"
233 "httpfs2-" version ".tar.gz"))
236 "1h8ggvhw30n2r6w11n1s458ypggdqx6ldwd61ma4yd7binrlpjq1"))))
237 (build-system gnu-build-system)
239 `(("asciidoc" ,asciidoc)
240 ("docbook-xml" ,docbook-xml)
243 ("pkg-config" ,pkg-config)))
249 (modify-phases %standard-phases
250 (delete 'configure) ; no configure script
252 ;; There's no ‘install’ target. Install all variants manually.
253 (lambda* (#:key outputs #:allow-other-keys)
254 (let* ((out (assoc-ref outputs "out"))
255 (bin (string-append out "/bin"))
256 (man1 (string-append out "/share/man/man1")))
261 (let ((man1-page (string-append variant ".1")))
262 (install-file variant bin)
263 (install-file man1-page man1)))
269 #:make-flags (list "CC=gcc")
270 #:parallel-build? #f ; can result in missing man pages
271 #:tests? #f)) ; no tests
272 (home-page "https://sourceforge.net/projects/httpfs/")
273 (synopsis "Mount remote files over HTTP")
274 (description "httpfs2 is a @code{fuse} file system for mounting any
275 @dfn{HyperText} (HTTP or HTTPS) URL. It uses HTTP/1.1 byte ranges to request
276 arbitrary bytes from the web server, without needing to download the entire
277 file. This is particularly useful with large archives such as ZIP files and
278 ISO images when you only need to inspect their contents or extract specific
279 files. Since the HTTP protocol itself has no notion of directories, only a
280 single file can be mounted.")
281 (license license:gpl2+)))
283 (define-public jfsutils
290 (uri (string-append "http://jfs.sourceforge.net/project/pub/jfsutils-"
293 (base32 "0kbsy2sk1jv4m82rxyl25gwrlkzvl3hzdga9gshkxkhm83v1aji4"))
294 (patches (search-patches "jfsutils-add-sysmacros.patch"
295 "jfsutils-include-systypes.patch"))))
296 (build-system gnu-build-system)
298 `(("util-linux" ,util-linux "lib")))
299 (home-page "http://jfs.sourceforge.net/home.html")
300 (synopsis "Utilities for managing JFS file systems")
302 "The JFSutils are a collection of utilities for managing the @acronym{JFS,
303 Journaled File System}, a 64-bit journaling file system created by IBM and later
304 ported to the kernel Linux. The following commands are available:
306 @item @command{fsck.jfs}: check and repair a JFS file system or replay its
308 @item @command{logdump}: dump the JFS journal log.
309 @item @command{logredo}: replay the JFS journal log.
310 @item @command{mkfs.jfs}: create a new JFS file system.
311 @item @command{xchklog}: save a JFS fsck log to a file.
312 @item @command{xchkdmp}: dump the contents of such a log file.
313 @item @command{xpeek}: a JFS file system editor with a shell-like interface.
315 (license license:gpl3+))) ; no explicit version given
317 (define-public jfsutils/static
321 (name "jfsutils-static")
323 `(("util-linux:static" ,util-linux "static")
324 ,@(package-inputs jfsutils))))))
326 (define-public jfs_fsck/static
328 (name "jfs_fsck-static")
329 (version (package-version jfsutils))
331 (build-system trivial-build-system)
333 `(#:modules ((guix build utils))
336 (use-modules (guix build utils)
339 (let* ((jfsutils (assoc-ref %build-inputs "jfsutils"))
341 (out (assoc-ref %outputs "out"))
342 (sbin (string-append out "/sbin")))
344 (with-directory-excursion sbin
345 (install-file (string-append jfsutils "/sbin/" fsck)
347 (remove-store-references fsck)
351 `(("jfsutils" ,jfsutils/static)))
352 (home-page (package-home-page jfsutils))
353 (synopsis "Statically-linked jfs_fsck command from jfsutils")
354 (description "This package provides statically-linked jfs_fsck command taken
355 from the jfsutils package. It is meant to be used in initrds.")
356 (license (package-license jfsutils))))
358 (define-public disorderfs
366 (url "https://salsa.debian.org/reproducible-builds/disorderfs.git")
368 (file-name (git-file-name name version))
371 "0lsisx5118k0qk0b5klbxl03rvhycnznyfx05yxmjawh85bfhmlh"))))
372 (build-system gnu-build-system)
374 `(("pkg-config" ,pkg-config)))
379 `(#:phases (modify-phases %standard-phases
380 (delete 'configure)) ; no configure script
381 #:make-flags (let ((out (assoc-ref %outputs "out")))
382 (list (string-append "PREFIX=" out)))
384 ;; FIXME: Tests require 'run-parts' which is not in Guix yet.
386 (home-page "https://salsa.debian.org/reproducible-builds/disorderfs")
387 (synopsis "FUSE file system that introduces non-determinism")
389 "An overlay FUSE file system that introduces non-determinism
390 into file system metadata. For example, it can randomize the order
391 in which directory entries are read. This is useful for detecting
392 non-determinism in the build process.")
393 (license license:gpl3+)))
395 (define-public glusterfs
402 (uri (string-append "https://download.gluster.org/pub/gluster/glusterfs/"
403 (version-major version) "/"
404 (version-major+minor version) "/"
405 "glusterfs-" version ".tar.gz"))
408 "0yzhx710ypj0j3m5dcgmmgvkp7p0rmmp2p7ld0axrm4vpwc2b1wa"))))
409 (build-system gnu-build-system)
412 (let ((out (assoc-ref %outputs "out"))
413 (p2 (assoc-ref %build-inputs "python-2")))
414 (list (string-append "PYTHON=" p2 "/bin/python")
415 (string-append "--with-initdir=" out "/etc/init.d")
416 (string-append "--with-mountutildir=" out "/sbin")
417 "--enable-cmocka" ; unit tests
418 ;; "--enable-debug" ; debug build options
419 ;; "--enable-asan" ; Address Sanitizer
420 ;; "--enable-tsan" ; ThreadSanitizer
423 (modify-phases %standard-phases
424 (add-before 'configure 'autogen
425 (lambda _ (invoke "./autogen.sh"))))))
427 `(("pkg-config" ,pkg-config)
428 ("libtirpc", libtirpc)
429 ("rpcsvc-proto", rpcsvc-proto)
430 ("python-2" ,python-2) ; must be version 2
434 ("autoconf" ,autoconf)
435 ("automake" ,automake)
442 ("libuuid" ,util-linux "lib")
444 ("readline" ,readline)
447 ("rdma-core", rdma-core)))
448 (home-page "https://www.gluster.org")
449 (synopsis "Distributed file system")
450 (description "GlusterFS is a distributed scalable network file system
451 suitable for data-intensive tasks such as cloud storage and media streaming.
452 It allows rapid provisioning of additional storage based on your storage
453 consumption needs. It incorporates automatic failover as a primary feature.
454 All of this is accomplished without a centralized metadata server.")
455 ;; The user may choose either LGPLv3+ or GPLv2 only.
456 (license (list license:lgpl3+ license:gpl2+))))
458 (define-public curlftpfs
465 (uri (string-append "mirror://sourceforge/curlftpfs/curlftpfs/" version
466 "/curlftpfs-" version ".tar.gz"))
469 "0n397hmv21jsr1j7zx3m21i7ryscdhkdsyqpvvns12q7qwwlgd2f"))))
470 (build-system gnu-build-system)
473 (modify-phases %standard-phases
474 (add-after 'unpack 'fix-test
476 ;; One of the 512-Byte block counts is definitely wrong.
477 ;; See <https://sourceforge.net/p/curlftpfs/bugs/73/>.
478 (substitute* "tests/ftpfs-ls_unittest.c"
479 (("4426192") "12814800"))
486 `(("pkg-config" ,pkg-config)))
487 (home-page "http://curlftpfs.sourceforge.net/")
488 (synopsis "Mount remote file systems over FTP")
490 "This is a file system client based on the FTP File Transfer Protocol.")
491 (license license:gpl2+)))
493 (define-public libnfs
500 (url "https://github.com/sahlberg/libnfs.git")
501 (commit (string-append "libnfs-" version))))
502 (file-name (git-file-name name version))
505 "115p55y2cbs92z5lmcnjx1v29lwinpgq4sha9v1kq1vd8674h404"))))
506 (build-system gnu-build-system)
507 (home-page "https://github.com/sahlberg/libnfs")
509 `(("autoconf" ,autoconf)
510 ("automake" ,automake)
512 ("pkg-config" ,pkg-config)))
513 (synopsis "Client library for accessing NFS shares")
514 (description "LIBNFS is a client library for accessing NFS shares over a
515 network. LIBNFS offers three different APIs, for different use :
518 @item RAW, a fully asynchronous low level RPC library for NFS protocols. This
519 API provides very flexible and precise control of the RPC issued.
520 @item NFS ASYNC, a fully asynchronous library for high level vfs functions
521 @item NFS SYNC, a synchronous library for high level vfs functions.
523 (license (list license:lgpl2.1+ ; library
524 license:gpl3+ ; tests
525 license:bsd-3 ; copied nsf4 files
528 (define-public apfs-fuse
529 ;; Later versions require FUSE 3.
530 (let ((commit "7b89418e8dc27103d3c4f8fa348086ffcd634c17")
534 (version (git-version "0.0.0" revision commit))
538 (url "https://github.com/sgan81/apfs-fuse")
539 (recursive? #t) ; for lzfse
543 "0x2siy3cmnm9wsdfazg3xc8r3kbg73gijmnn1vjw33pp71ckylxr"))
544 (file-name (git-file-name name version))))
545 (build-system cmake-build-system)
547 `(#:tests? #f ; No test suite
549 '("-DUSE_FUSE3=OFF") ; FUSE 3 is not packaged yet.
551 (modify-phases %standard-phases
552 ;; No 'install' target in CMakeLists.txt
554 (lambda* (#:key outputs #:allow-other-keys)
555 (let* ((out (assoc-ref outputs "out"))
556 (bin (string-append out "/bin"))
557 (lib (string-append out "/lib"))
558 (doc (string-append out "/share/doc/"
559 (string-append ,name "-" ,version))))
560 (install-file "apfs-dump" bin)
561 (install-file "apfs-dump-quick" bin)
562 (install-file "apfs-fuse" bin)
563 (install-file "libapfs.a" lib)
564 (install-file "../source/README.md" doc)
570 (synopsis "Read-only FUSE driver for the APFS file system")
571 (description "APFS-FUSE is a read-only FUSE driver for the @dfn{Apple File
572 System} (APFS). It is currently in an experimental state — it may not be able
573 to read all files, and it does not support all the compression methods in
575 (home-page "https://github.com/sgan81/apfs-fuse")
576 (license license:gpl2+))))
582 (outputs '("out" "module" "src"))
586 (uri (string-append "https://github.com/zfsonlinux/zfs/releases"
587 "/download/zfs-" version
588 "/zfs-" version ".tar.gz"))
591 "1f7aig15q3z832pr2n48j3clafic2yk1vvqlh28vpklfghjqwq27"))))
592 (build-system linux-module-build-system)
594 `(;; The ZFS kernel module should not be downloaded since the license
595 ;; terms don't allow for distributing it, only building it locally.
597 ;; Tests cannot run in an unprivileged build environment.
600 (modify-phases %standard-phases
601 (add-after 'configure 'really-configure
602 (lambda* (#:key outputs inputs #:allow-other-keys)
603 (let ((out (assoc-ref outputs "out")))
604 (substitute* "configure"
605 (("-/bin/sh") (string-append "-" (which "sh")))
606 ((" /bin/sh") (string-append " " (which "sh"))))
607 (invoke "./configure"
609 (string-append "--prefix=" out)
610 (string-append "--with-dracutdir=" out "/lib/dracut")
611 (string-append "--with-udevdir=" out "/lib/udev")
612 (string-append "--with-mounthelperdir=" out "/sbin")
613 (string-append "--with-linux="
614 (assoc-ref inputs "linux-module-builder")
615 "/lib/modules/build")))))
616 (add-after 'unpack 'patch-source
617 (lambda* (#:key inputs outputs #:allow-other-keys)
618 (let ((out (assoc-ref outputs "out"))
619 (src (assoc-ref outputs "src"))
620 (util-linux (assoc-ref inputs "util-linux"))
621 (nfs-utils (assoc-ref inputs "nfs-utils")))
622 (substitute* "module/zfs/zfs_ctldir.c"
623 (("/usr/bin/env\", \"umount")
624 (string-append util-linux "/bin/umount\", \"-n"))
625 (("/usr/bin/env\", \"mount")
626 (string-append util-linux "/bin/mount\", \"-n")))
627 (substitute* "lib/libzfs/libzfs_mount.c"
628 (("/bin/mount") (string-append util-linux "/bin/mount"))
629 (("/bin/umount") (string-append util-linux "/bin/umount")))
630 (substitute* "lib/libshare/nfs.c"
631 (("/usr/sbin/exportfs")
632 (string-append nfs-utils "/sbin/exportfs")))
633 (substitute* "config/zfs-build.m4"
634 (("\\$sysconfdir/init.d") (string-append out "/etc/init.d")))
635 (substitute* '("etc/zfs/Makefile.am"
636 "cmd/zed/Makefile.am")
637 (("\\$\\(sysconfdir)") (string-append out "/etc")))
638 (substitute* "cmd/vdev_id/vdev_id"
639 (("PATH=/bin:/sbin:/usr/bin:/usr/sbin")
640 (string-append "PATH="
641 (dirname (which "chmod")) ":"
642 (dirname (which "grep")) ":"
643 (dirname (which "sed")) ":"
644 (dirname (which "gawk")))))
645 (substitute* "contrib/pyzfs/Makefile.in"
646 ((".*install-lib.*") ""))
647 (substitute* '("Makefile.am" "Makefile.in")
648 (("\\$\\(prefix)/src") (string-append src "/src"))))
651 (lambda _ (invoke "make")))
653 (lambda* (#:key outputs inputs native-inputs #:allow-other-keys)
654 (let* ((out (assoc-ref outputs "out"))
655 (moddir (assoc-ref outputs "module"))
656 (kmod (assoc-ref (or native-inputs inputs) "kmod")))
657 (invoke "make" "install"
658 (string-append "DEFAULT_INITCONF_DIR=" out "/etc/default")
659 (string-append "DEPMOD=" kmod "/bin/depmod")
660 (string-append "INSTALL_PATH=" out)
661 (string-append "INSTALL_MOD_PATH=" moddir)
662 "INSTALL_MOD_STRIP=1")
663 (install-file "contrib/bash_completion.d/zfs"
664 (string-append out "/share/bash-completion/completions"))
665 (symlink "../share/pkgconfig/" (string-append out "/lib/pkgconfig"))
670 ("pkg-config" ,pkg-config)))
674 ("libtirpc" ,libtirpc)
675 ("nfs-utils" ,nfs-utils)
678 ("python-cffi" ,python-cffi)
679 ("util-linux" ,util-linux "lib")
681 (home-page "https://zfsonlinux.org/")
682 (synopsis "Native ZFS on Linux")
684 "ZFS on Linux is an advanced file system and volume manager which was
685 originally developed for Solaris and is now maintained by the OpenZFS
687 (license license:cddl1.0)))
689 (define-public mergerfs
696 (uri (string-append "https://github.com/trapexit/mergerfs/releases/download/"
697 version "/mergerfs-" version ".tar.gz"))
700 "17gizw4vgbqqjd2ykkfpp276942jb5qclp0lkiwkmq1yjgyjqfmk"))))
701 (build-system gnu-build-system)
703 `(#:tests? #f ; No tests exist.
705 (modify-phases %standard-phases
707 (add-after 'unpack 'fix-paths
708 (lambda* (#:key inputs outputs #:allow-other-keys)
710 ;; These were copied from the package libfuse.
711 (substitute* '("libfuse/lib/mount_util.c" "libfuse/util/mount_util.c")
712 (("/bin/(u?)mount" _ maybe-u)
713 (string-append (assoc-ref inputs "util-linux")
714 "/bin/" maybe-u "mount")))
715 (substitute* '("libfuse/util/mount.mergerfs.c")
718 ;; The Makefile does not allow overriding PREFIX via make variables.
719 (substitute* '("Makefile" "libfuse/Makefile")
720 (("= /usr/local") (string-append "= " (assoc-ref outputs "out")))
721 ;; cannot chown as build user
722 (("chown root:root") "true"))
724 ;; mergerfs bundles a heavily modified copy of libfuse.
725 (inputs `(("util-linux" ,util-linux)))
726 (home-page "https://github.com/trapexit/mergerfs")
727 (synopsis "Featureful union filesystem")
728 (description "mergerfs is a union filesystem geared towards simplifying
729 storage and management of files across numerous commodity storage devices. It
730 is similar to mhddfs, unionfs, and aufs.")
732 license:isc ; mergerfs
733 license:gpl2 license:lgpl2.0 ; Imported libfuse code.
736 (define-public mergerfs-tools
737 (let ((commit "c926779d87458d103f3b674603bf97801ae2486d")
740 (name "mergerfs-tools")
741 ;; No released version exists.
742 (version (git-version "0.0" revision commit))
747 (url "https://github.com/trapexit/mergerfs-tools.git")
749 (file-name (git-file-name name version))
752 "04hhwcib0xv4cf1mkj8zrp2aqpxkncml9iqg4m1mz6a5zhzsk0vm"))))
753 (build-system copy-build-system)
756 ("python-xattr" ,python-xattr)
762 (modify-phases %standard-phases
763 (add-after 'unpack 'patch-paths
764 (lambda* (#:key inputs #:allow-other-keys)
765 (substitute* (find-files "src" "^mergerfs\\.")
767 (string-append "'" (assoc-ref inputs "rsync") "/bin/rsync'"))
769 (string-append "'" (assoc-ref inputs "coreutils") "/bin/rm'")))
770 (substitute* "src/mergerfs.mktrash"
772 (string-append (assoc-ref inputs "python-xattr") "/bin/xattr"))
774 (string-append (assoc-ref inputs "coreutils") "/bin/mkdir")))
776 (synopsis "Tools to help manage data in a mergerfs pool")
777 (description "mergerfs-tools is a suite of programs that can audit
778 permissions and ownership of files and directories on a mergerfs volume,
779 duplicates files and directories across branches in its pool, find and remove
780 duplicate files, balance pool drives, consolidate files in a single mergerfs
781 directory onto a single drive and create FreeDesktop.org Trash specification
782 compatible directories.")
783 (home-page "https://github.com/trapexit/mergerfs-tools")
784 (license license:isc))))