2017-01-04 10:42:38 +01:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2022-08-07 02:00:01 +02:00
|
|
|
|
;;; Copyright © 2017, 2018, 2020–2022 Tobias Geerinckx-Rice <me@tobias.gr>
|
2017-11-04 23:35:05 +01:00
|
|
|
|
;;; Copyright © 2017 Gábor Boskovits <boskovits@gmail.com>
|
2021-02-24 15:48:36 +01:00
|
|
|
|
;;; Copyright © 2017, 2018, 2021 Ricardo Wurmus <rekado@elephly.net>
|
2018-11-12 00:29:48 +01:00
|
|
|
|
;;; Copyright © 2018 Leo Famulari <leo@famulari.name>
|
2022-07-12 14:02:11 +02:00
|
|
|
|
;;; Copyright © 2019-2022 Efraim Flashner <efraim@flashner.co.il>
|
2020-05-10 23:19:52 +02:00
|
|
|
|
;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
|
2020-10-10 00:20:53 +02:00
|
|
|
|
;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com>
|
2021-02-15 13:36:02 +01:00
|
|
|
|
;;; Copyright © 2021 raid5atemyhomework <raid5atemyhomework@protonmail.com>
|
2021-03-15 23:02:20 +01:00
|
|
|
|
;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
|
2021-06-02 14:32:45 +02:00
|
|
|
|
;;; Copyright © 2021 Noisytoot <noisytoot@disroot.org>
|
2021-09-22 23:25:22 +02:00
|
|
|
|
;;; Copyright © 2021 Kaelyn Takata <kaelyn.alexi@protonmail.com>
|
2022-04-25 02:11:14 +02:00
|
|
|
|
;;; Copyright © 2022 Brian Cully <bjc@spork.org>
|
2017-01-04 10:42:38 +01:00
|
|
|
|
;;;
|
|
|
|
|
;;; 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 file-systems)
|
2021-12-20 01:05:25 +01:00
|
|
|
|
#:use-module (guix gexp)
|
2017-01-04 10:42:38 +01:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2017-11-04 23:35:05 +01:00
|
|
|
|
#:use-module (guix git-download)
|
2018-11-12 00:29:48 +01:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2020-05-30 19:10:55 +02:00
|
|
|
|
#:use-module (guix build-system copy)
|
2017-01-04 10:42:38 +01:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2021-02-24 15:48:36 +01:00
|
|
|
|
#:use-module (guix build-system go)
|
2019-12-19 10:47:49 +01:00
|
|
|
|
#:use-module (guix build-system linux-module)
|
2020-08-13 18:46:48 +02:00
|
|
|
|
#:use-module (guix build-system python)
|
2019-12-31 01:22:22 +01:00
|
|
|
|
#:use-module (guix build-system trivial)
|
2017-11-07 08:03:36 +01:00
|
|
|
|
#:use-module (guix utils)
|
2017-01-04 10:42:38 +01:00
|
|
|
|
#:use-module (gnu packages)
|
2017-11-07 08:03:36 +01:00
|
|
|
|
#:use-module (gnu packages acl)
|
2021-01-12 02:58:11 +01:00
|
|
|
|
#:use-module (gnu packages admin)
|
2017-11-04 23:35:05 +01:00
|
|
|
|
#:use-module (gnu packages attr)
|
2017-11-07 08:03:36 +01:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2020-12-17 12:39:09 +01:00
|
|
|
|
#:use-module (gnu packages base)
|
2021-07-09 02:52:47 +02:00
|
|
|
|
#:use-module (gnu packages bash)
|
2017-11-07 08:03:36 +01:00
|
|
|
|
#:use-module (gnu packages bison)
|
|
|
|
|
#:use-module (gnu packages check)
|
|
|
|
|
#:use-module (gnu packages compression)
|
2020-01-20 02:23:59 +01:00
|
|
|
|
#:use-module (gnu packages crypto)
|
2018-01-16 17:34:22 +01:00
|
|
|
|
#:use-module (gnu packages curl)
|
2020-06-06 05:10:23 +02:00
|
|
|
|
#:use-module (gnu packages cyrus-sasl)
|
2017-11-07 08:03:36 +01:00
|
|
|
|
#:use-module (gnu packages datastructures)
|
2017-01-04 10:42:38 +01:00
|
|
|
|
#:use-module (gnu packages documentation)
|
|
|
|
|
#:use-module (gnu packages docbook)
|
2017-11-07 08:03:36 +01:00
|
|
|
|
#:use-module (gnu packages flex)
|
2020-12-17 12:39:09 +01:00
|
|
|
|
#:use-module (gnu packages gawk)
|
2018-01-16 17:34:22 +01:00
|
|
|
|
#:use-module (gnu packages glib)
|
2020-05-10 23:19:52 +02:00
|
|
|
|
#:use-module (gnu packages gnupg)
|
2021-02-24 15:48:36 +01:00
|
|
|
|
#:use-module (gnu packages golang)
|
2021-01-12 02:58:11 +01:00
|
|
|
|
#:use-module (gnu packages guile)
|
2020-06-06 05:10:23 +02:00
|
|
|
|
#:use-module (gnu packages kerberos)
|
2019-12-19 10:47:49 +01:00
|
|
|
|
#:use-module (gnu packages libffi)
|
2017-01-04 10:42:38 +01:00
|
|
|
|
#:use-module (gnu packages linux)
|
2019-12-19 10:47:49 +01:00
|
|
|
|
#:use-module (gnu packages nfs)
|
2019-11-28 09:06:29 +01:00
|
|
|
|
#:use-module (gnu packages onc-rpc)
|
2020-06-06 05:10:23 +02:00
|
|
|
|
#:use-module (gnu packages openldap)
|
2021-07-07 03:44:29 +02:00
|
|
|
|
#:use-module (gnu packages pcre)
|
2021-01-12 02:58:11 +01:00
|
|
|
|
#:use-module (gnu packages perl)
|
2020-05-07 17:01:37 +02:00
|
|
|
|
#:use-module (gnu packages photo)
|
2017-01-04 10:42:38 +01:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2017-11-07 08:03:36 +01:00
|
|
|
|
#:use-module (gnu packages python)
|
2020-08-13 18:46:48 +02:00
|
|
|
|
#:use-module (gnu packages python-crypto)
|
|
|
|
|
#:use-module (gnu packages python-web)
|
2020-05-30 19:10:55 +02:00
|
|
|
|
#:use-module (gnu packages python-xyz)
|
2017-11-07 08:03:36 +01:00
|
|
|
|
#:use-module (gnu packages readline)
|
2020-05-30 19:10:55 +02:00
|
|
|
|
#:use-module (gnu packages rsync)
|
2020-06-06 05:10:23 +02:00
|
|
|
|
#:use-module (gnu packages sssd)
|
gnu: Move sqlite to separate module.
* gnu/packages/databases.scm (sqlite, sqlite-3.26.0, sqlite-with-fts5,
sqlite-with-column-metadata): Move variables from here...
* gnu/packages/sqlite.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/apl.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/code.scm,
gnu/packages/crypto.scm,
gnu/packages/databases.scm,
gnu/packages/dc.scm,
gnu/packages/disk.scm,
gnu/packages/ebook.scm,
gnu/packages/education.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/file-systems.scm,
gnu/packages/freedesktop.scm,
gnu/packages/ftp.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gnome.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/gps.scm,
gnu/packages/guile.scm,
gnu/packages/ibus.scm,
gnu/packages/kerberos.scm,
gnu/packages/kodi.scm,
gnu/packages/lisp.scm,
gnu/packages/mail.scm,
gnu/packages/messaging.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nfs.scm,
gnu/packages/ocaml.scm,
gnu/packages/package-management.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/php.scm,
gnu/packages/python.scm,
gnu/packages/qt.scm,
gnu/packages/ruby.scm,
gnu/packages/scheme.scm,
gnu/packages/sync.scm,
gnu/packages/syndication.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/web-browsers.scm,
gnu/packages/webkit.scm: Adjust module references.
2019-01-15 21:47:05 +01:00
|
|
|
|
#:use-module (gnu packages sqlite)
|
2021-01-12 02:58:11 +01:00
|
|
|
|
#:use-module (gnu packages time)
|
2017-01-04 10:42:38 +01:00
|
|
|
|
#:use-module (gnu packages tls)
|
2020-01-20 02:23:59 +01:00
|
|
|
|
#:use-module (gnu packages valgrind)
|
2020-11-20 20:07:03 +01:00
|
|
|
|
#:use-module (gnu packages version-control)
|
2017-01-04 10:42:38 +01:00
|
|
|
|
#:use-module (gnu packages xml))
|
|
|
|
|
|
2020-06-06 05:10:23 +02:00
|
|
|
|
(define-public autofs
|
|
|
|
|
(package
|
|
|
|
|
(name "autofs")
|
2021-10-21 00:48:04 +02:00
|
|
|
|
(version "5.1.8")
|
2020-06-06 05:10:23 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://kernel.org/linux/daemons/autofs/"
|
|
|
|
|
"v" (version-major version) "/"
|
|
|
|
|
"autofs-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
2021-10-21 00:48:04 +02:00
|
|
|
|
(base32 "1zf0fgf6kr9amxq5amlgsp1v13sizwl3wvx2xl7b4r2nhmci0gdk"))))
|
2020-06-06 05:10:23 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list "--enable-ignore-busy" ; during shutdown
|
|
|
|
|
"--enable-sloppy-mount" ; support mount(8) -s
|
|
|
|
|
"--with-libtirpc"
|
|
|
|
|
(string-append "--with-openldap="
|
|
|
|
|
(assoc-ref %build-inputs "openldap"))
|
|
|
|
|
(string-append "--with-sasl="
|
|
|
|
|
(assoc-ref %build-inputs "cyrus-sasl"))
|
|
|
|
|
"HAVE_SSS_AUTOFS=1" ; required to make sssldir click
|
|
|
|
|
(string-append "sssldir="
|
|
|
|
|
(assoc-ref %build-inputs "sssd")
|
|
|
|
|
"/lib/sssd/modules"))
|
|
|
|
|
#:tests? #f ; no test suite
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'fix-hard-coded-search-path
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("^searchpath=\".*\"")
|
2021-10-21 00:48:04 +02:00
|
|
|
|
"searchpath=\"$PATH\""))))
|
2021-03-28 12:51:08 +02:00
|
|
|
|
(add-before 'configure 'fix-rpath
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(substitute* "Makefile.rules"
|
|
|
|
|
(("^AUTOFS_LIB_LINK.*=" match)
|
|
|
|
|
(string-append match " -Wl,-rpath=" out "/lib"))))))
|
2020-06-06 05:10:23 +02:00
|
|
|
|
(add-before 'install 'omit-obsolete-lookup_nis.so-link
|
|
|
|
|
;; Building lookup_yp.so depends on $(YPCLNT) but this doesn't,
|
|
|
|
|
;; leading to a make error. Since it's broken, comment it out.
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "modules/Makefile"
|
|
|
|
|
(("ln -fs lookup_yp.so" match)
|
2021-10-21 00:48:04 +02:00
|
|
|
|
(string-append "# " match))))))))
|
2020-06-06 05:10:23 +02:00
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list bison flex pkg-config rpcsvc-proto))
|
2020-06-06 05:10:23 +02:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list cyrus-sasl
|
|
|
|
|
e2fsprogs ; for e[234]fsck
|
|
|
|
|
libtirpc
|
|
|
|
|
libxml2 ; needed for LDAP, SASL
|
|
|
|
|
mit-krb5 ; needed for LDAP, SASL
|
|
|
|
|
nfs-utils ; for mount.nfs
|
|
|
|
|
openldap
|
|
|
|
|
openssl ; needed for SASL
|
|
|
|
|
sssd
|
|
|
|
|
util-linux)) ; for mount, umount
|
2020-06-06 05:10:23 +02:00
|
|
|
|
;; XXX A directory index is the closest thing this has to a home page.
|
|
|
|
|
(home-page "https://www.kernel.org/pub/linux/daemons/autofs/")
|
|
|
|
|
(synopsis "Kernel-based automounter for Linux")
|
|
|
|
|
(description
|
|
|
|
|
"Autofs is a kernel-based automounter for use with the Linux autofs4
|
|
|
|
|
module. It automatically mounts selected file systems when they are used and
|
|
|
|
|
unmounts them after a set period of inactivity. This provides
|
|
|
|
|
centrally-managed, consistent file names for users and applications, even in a
|
|
|
|
|
large and/or frequently changing (network) environment.")
|
|
|
|
|
;; fedfs/ is GPL-2-only but not built.
|
|
|
|
|
(license (list license:bsd-3 ; modules/cyrus-sasl.c
|
|
|
|
|
license:gpl2+)))) ; the rest
|
|
|
|
|
|
2020-10-10 00:20:53 +02:00
|
|
|
|
(define-public bindfs
|
|
|
|
|
(package
|
|
|
|
|
(name "bindfs")
|
2021-03-11 00:39:24 +01:00
|
|
|
|
(version "1.15.1")
|
2020-10-10 00:20:53 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://bindfs.org/downloads/bindfs-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-03-11 00:39:24 +01:00
|
|
|
|
"1av8dj9i1g0105fs5r9srqqsp7yahlhwc0yl8i1szyfdls23bp84"))))
|
2020-10-10 00:20:53 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; XXX: The tests have no hope of passing until there is a "nogroup"
|
|
|
|
|
;; entry (or at least some group to which the guix builder does
|
|
|
|
|
;; not belong) in the /etc/group file of the build environment.
|
|
|
|
|
;; Currently we do not have such a group. Disable tests for now.
|
|
|
|
|
'(#:tests? #f))
|
|
|
|
|
(native-inputs
|
|
|
|
|
;; Native inputs to run the tests
|
|
|
|
|
;; ("ruby" ,ruby)
|
|
|
|
|
;; ("valgrind" ,valgrind)
|
|
|
|
|
;; ("which" ,which)
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list pkg-config))
|
2020-10-10 00:20:53 +02:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list fuse))
|
2020-10-10 00:20:53 +02:00
|
|
|
|
(home-page "https://bindfs.org")
|
|
|
|
|
(synopsis "Bind mount a directory and alter permission bits")
|
|
|
|
|
(description
|
2021-04-09 19:59:13 +02:00
|
|
|
|
"@command{bindfs} is a FUSE file system for mounting a directory to
|
2020-10-10 00:20:53 +02:00
|
|
|
|
another location, similar to @command{mount --bind}. It can be used for:
|
|
|
|
|
@itemize
|
|
|
|
|
@item Making a directory read-only.
|
|
|
|
|
@item Making all executables non-executable.
|
|
|
|
|
@item Sharing a directory with a list of users (or groups).
|
|
|
|
|
@item Modifying permission bits using rules with chmod-like syntax.
|
|
|
|
|
@item Changing the permissions with which files are created.
|
2021-12-30 09:34:24 +01:00
|
|
|
|
@end itemize")
|
2020-10-10 00:20:53 +02:00
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
2021-06-24 00:20:53 +02:00
|
|
|
|
(define-public cachefilesd-inotify
|
|
|
|
|
(package
|
|
|
|
|
(name "cachefilesd-inotify")
|
|
|
|
|
(version "0.11.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://gitlab.com/tomalok/cachefilesd-inotify")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0qkrpz69ql6fb3fwh0l35hhf9znnqyxhgv5fzd1gl2a2kz13rq5a"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:make-flags
|
|
|
|
|
(list (string-append "CC=" ,(cc-for-target))
|
|
|
|
|
;; The Makefile doesn't support prefix= or similar.
|
|
|
|
|
(string-append "DESTDIR=" (assoc-ref %outputs "out"))
|
|
|
|
|
"MANDIR=/share/man")
|
|
|
|
|
#:tests? #f ; no test suite
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)))) ; no configure script
|
|
|
|
|
(home-page "https://gitlab.com/tomalok/cachefilesd-inotify")
|
|
|
|
|
(synopsis
|
|
|
|
|
"CacheFiles file system cache management daemon (using @code{inotify})")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides the user space component of CacheFiles, a caching
|
|
|
|
|
back end that uses a directory on a locally mounted file system (such as ext4)
|
|
|
|
|
as a cache to speed up (by reducing) access to a slower file system and make it
|
|
|
|
|
appear more reliable.
|
|
|
|
|
|
|
|
|
|
The cached file system is often a network file system such as NFS or CIFS, but
|
|
|
|
|
can also be a local file system like ISO 9660 on a slow optical drive.
|
|
|
|
|
|
|
|
|
|
CacheFiles itself is part of the kernel but relies on this user space
|
|
|
|
|
@command{cachefilesd} daemon to perform maintenance tasks like culling and
|
|
|
|
|
reaping stale nodes. Only one such daemon can be running at a time, and
|
|
|
|
|
communicates with the kernel through the @file{/dev/cachefiles} character
|
|
|
|
|
device.
|
|
|
|
|
|
|
|
|
|
This version modifies David Howells original cachefilesd---which appears
|
|
|
|
|
unmaintained---to use the @code{inotify} API instead of the deprecated
|
|
|
|
|
@code{dnotify} to monitor file changes.")
|
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
2020-11-20 20:07:03 +01:00
|
|
|
|
(define-public davfs2
|
|
|
|
|
(package
|
|
|
|
|
(name "davfs2")
|
2021-11-26 22:32:57 +01:00
|
|
|
|
(version "1.6.1")
|
2020-11-20 20:07:03 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.savannah.nongnu.org/releases/"
|
|
|
|
|
"davfs2/davfs2-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2021-11-26 22:32:57 +01:00
|
|
|
|
(base32 "1h65j2py59b97wbzzjhp4wbkk6351v3hrjscjcfab0p5xi4bjgnf"))))
|
2020-11-20 20:07:03 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list "--sysconfdir=/etc" ; so man pages & binaries contain /etc
|
|
|
|
|
(string-append "--docdir=" (assoc-ref %outputs "out")
|
|
|
|
|
"/share/doc/" ,name "-" ,version)
|
|
|
|
|
(string-append "ssbindir=" (assoc-ref %outputs "out") "/sbin")
|
|
|
|
|
;; The default ‘davfs2’ user and group don't exist on most systems.
|
|
|
|
|
"dav_user=nobody"
|
|
|
|
|
"dav_group=nogroup")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'omit-redundancy
|
|
|
|
|
;; Don't install redundant copies of /etc examples into /share.
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "etc/Makefile.in"
|
|
|
|
|
(("(dist_pkgdata_DATA =.*) davfs2.conf secrets(.*)"
|
|
|
|
|
_ prefix suffix)
|
2021-11-26 22:32:57 +01:00
|
|
|
|
(string-append prefix suffix)))))
|
2020-11-20 20:07:03 +01:00
|
|
|
|
(add-after 'unpack 'patch-file-names
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Don't auto-load the FUSE kernel module. That's up to root.
|
|
|
|
|
;; XXX If/when we restore the previous behaviour, make sure not
|
|
|
|
|
;; to introduce a security hole when mount.davfs is setuid.
|
|
|
|
|
(substitute* "src/kernel_interface.c"
|
2021-11-26 22:32:57 +01:00
|
|
|
|
(("/sbin/modprobe") "/modprobe/disabled"))))
|
2020-11-20 20:07:03 +01:00
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key make-flags outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(apply invoke "make" "install"
|
|
|
|
|
(string-append "pkgsysconfdir=" out "/etc")
|
|
|
|
|
make-flags)))))))
|
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list neon
|
|
|
|
|
;; Neon requires but doesn't propagate zlib, nor would we want that.
|
|
|
|
|
;; XZ as well, but that's already present in the build environment.
|
|
|
|
|
zlib))
|
2020-11-20 20:07:03 +01:00
|
|
|
|
(home-page "https://savannah.nongnu.org/projects/davfs2")
|
|
|
|
|
(synopsis "Mount remote WebDAV resources in the local file system")
|
|
|
|
|
(description
|
|
|
|
|
"The @acronym{WebDAV, Web Distributed Authoring and Versioning} extension
|
|
|
|
|
to the HTTP protocol defines a standard way to author resources on a remote Web
|
2021-04-09 19:46:51 +02:00
|
|
|
|
server. Davfs2 exposes such resources as a typical file system which can be
|
|
|
|
|
used by standard applications with no built-in support for WebDAV, such as the
|
|
|
|
|
GNU coreutils (@command{cp}, @command{mv}, etc.) or a graphical word processor.
|
2020-11-20 20:07:03 +01:00
|
|
|
|
|
|
|
|
|
Davfs2 works with most WebDAV servers with no or little configuration. It
|
|
|
|
|
supports TLS (HTTPS), HTTP proxies, HTTP basic and digest authentication, and
|
|
|
|
|
client certificates. It performs extensive caching to avoid unnecessary network
|
|
|
|
|
traffic, stay responsive even over slow or unreliable connections, and prevent
|
|
|
|
|
data loss. It aims to make use by unprivileged users as easy and secure as
|
|
|
|
|
possible.
|
|
|
|
|
|
|
|
|
|
However, davfs2 is not a full-featured WebDAV client. The file system interface
|
|
|
|
|
and the WebDAV protocol are quite different. Translating between the two is not
|
|
|
|
|
always possible.")
|
|
|
|
|
(license (list license:bsd-2 ; src/fuse_kernel.h
|
|
|
|
|
license:gpl3+)))) ; everything else
|
|
|
|
|
|
2021-06-25 15:53:30 +02:00
|
|
|
|
(define-public exfat-utils
|
|
|
|
|
(package
|
|
|
|
|
(name "exfat-utils")
|
|
|
|
|
(version "1.3.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/relan/exfat/releases/download/v"
|
|
|
|
|
version "/exfat-utils-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0da8f8mm1sbwqp7prh78qk33xm0b8kk2d5is7mh2szlhgdxd1syz"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "https://github.com/relan/exfat")
|
|
|
|
|
(synopsis "Utilities to manipulate exFAT file systems")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides an implementation of the exFAT file system,
|
|
|
|
|
including command-line tools to validate exFAT file systems and to create new
|
|
|
|
|
ones.")
|
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
2020-05-10 23:19:52 +02:00
|
|
|
|
(define-public fsarchiver
|
|
|
|
|
(package
|
|
|
|
|
(name "fsarchiver")
|
2021-03-06 01:17:34 +01:00
|
|
|
|
(version "0.8.6")
|
2020-05-10 23:19:52 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 22:53:28 +02:00
|
|
|
|
(url "https://github.com/fdupoux/fsarchiver")
|
2020-05-10 23:19:52 +02:00
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2021-03-06 01:17:34 +01:00
|
|
|
|
(base32 "1ry2sdkfbg4bwcldk42g1i3wa3z4pr9yh9dil6ilhwcvhqiw41zc"))))
|
2020-05-10 23:19:52 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list autoconf automake pkg-config))
|
2020-05-10 23:19:52 +02:00
|
|
|
|
(inputs
|
2021-12-13 22:15:07 +01:00
|
|
|
|
(list bzip2
|
|
|
|
|
e2fsprogs
|
|
|
|
|
libgcrypt
|
|
|
|
|
lz4
|
|
|
|
|
lzo
|
|
|
|
|
`(,util-linux "lib")
|
|
|
|
|
xz
|
|
|
|
|
zlib
|
|
|
|
|
`(,zstd "lib")))
|
2020-05-11 00:41:34 +02:00
|
|
|
|
(synopsis "File system back-up, deployment, and migration tool")
|
|
|
|
|
(description
|
|
|
|
|
"FSArchiver saves the contents of a file system to a compressed archive
|
|
|
|
|
file, and restores it to a different file system and/or partition. This
|
|
|
|
|
partition can be of a different size than the original and FSArchiver will
|
|
|
|
|
create a new file system if none exists.
|
|
|
|
|
|
|
|
|
|
All standard file attributes supported by the kernel are preserved, including
|
|
|
|
|
file permissions, timestamps, symbolic and hard links, and extended attributes.
|
|
|
|
|
|
|
|
|
|
Each file in the archive is protected by a checksum. If part of the archive
|
|
|
|
|
is corrupted you'll lose the affected file(s) but not the whole back-up.")
|
2020-06-10 17:25:17 +02:00
|
|
|
|
(home-page "https://www.fsarchiver.org/")
|
2020-05-10 23:19:52 +02:00
|
|
|
|
(license license:gpl2)))
|
|
|
|
|
|
2022-08-07 02:00:01 +02:00
|
|
|
|
(define-public fstransform
|
|
|
|
|
(package
|
|
|
|
|
(name "fstransform")
|
|
|
|
|
(version "0.9.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/cosmos72/fstransform")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0vhypb6pbghja95av62ds4mhldbg0h8g4yg94k9r7lsxm7bgpfr3"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list #:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'install 'install-README
|
|
|
|
|
;; There are no man pages. Install a poor substitute.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(doc (string-append out "/share/doc/" #$name)))
|
|
|
|
|
(install-file "README" doc)))))))
|
|
|
|
|
(inputs (list e2fsprogs))
|
|
|
|
|
(home-page "https://github.com/cosmos72/fstransform")
|
|
|
|
|
(synopsis "Convert file system types in place without copying all data")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides several command-line tools to transform a supported
|
|
|
|
|
file system, such as XFS, into one of a different supported type, such as ext4.
|
|
|
|
|
All existing file contents, names, and directories are preserved.
|
|
|
|
|
|
|
|
|
|
The conversion happens @dfn{in place}, without the need to create a complete
|
|
|
|
|
copy of the original data. This lets you transform almost full file systems on
|
|
|
|
|
systems where adding (sufficient) additional storage space is not an option.
|
|
|
|
|
|
|
|
|
|
Do @emph{not} use this package when you could simply create an empty file system
|
|
|
|
|
from scratch and restore from a back-up. Transformation is limited, slow, and
|
|
|
|
|
significantly increases the risk of irreversible data loss!")
|
|
|
|
|
;; Please follow <https://github.com/cosmos72/fstransform/issues/46>.
|
|
|
|
|
(license (list license:gpl2 ; fsattr/src/e4attr.* → sbin/fsattr
|
|
|
|
|
license:gpl3+)))) ; the rest
|
|
|
|
|
|
2020-05-07 17:01:37 +02:00
|
|
|
|
(define-public gphotofs
|
|
|
|
|
(package
|
|
|
|
|
(name "gphotofs")
|
|
|
|
|
(version "0.5.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append "mirror://sourceforge/gphoto/gphotofs/" version
|
|
|
|
|
"/gphotofs-0.5.tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"04slwhr6ap9xcc27wphk22ad8yn79ngyy5z10lxams3k5liahvc2"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list pkg-config))
|
2020-05-07 17:01:37 +02:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list fuse glib libgphoto2))
|
2020-07-09 16:45:12 +02:00
|
|
|
|
(synopsis "Virtual file system for libgphoto2 using FUSE")
|
|
|
|
|
(description "GPhotoFS is a FUSE file system module to mount your camera as
|
|
|
|
|
a file system on Linux. This allow using your camera with any tool able to read
|
|
|
|
|
from a mounted file system.")
|
2020-05-07 17:01:37 +02:00
|
|
|
|
(home-page "http://www.gphoto.org/proj/gphotofs/")
|
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
2020-01-20 02:23:59 +01:00
|
|
|
|
(define-public bcachefs-tools
|
2022-10-16 02:00:03 +02:00
|
|
|
|
(let ((commit "494421ee6e85514f90bb316d77e1dd4f7dad3420")
|
|
|
|
|
(revision "15"))
|
2020-01-20 02:23:59 +01:00
|
|
|
|
(package
|
|
|
|
|
(name "bcachefs-tools")
|
|
|
|
|
(version (git-version "0.1" revision commit))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://evilpiepirate.org/git/bcachefs-tools.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2022-10-16 02:00:03 +02:00
|
|
|
|
(base32 "1sdh9rl8ydnb28646773lsxpdy5jysvjbxs2nwr3hsv4qyv93vc4"))))
|
2020-01-20 02:23:59 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2021-12-20 01:05:25 +01:00
|
|
|
|
(list #:make-flags
|
|
|
|
|
#~(list (string-append "VERSION=" #$version) ; ‘v…-nogit’ otherwise
|
|
|
|
|
(string-append "PREFIX=" #$output)
|
|
|
|
|
"INITRAMFS_DIR=$(PREFIX)/share/initramfs-tools"
|
|
|
|
|
(string-append "CC=" #$(cc-for-target))
|
|
|
|
|
(string-append "PKG_CONFIG=" #$(pkg-config-for-target))
|
2022-07-12 15:38:30 +02:00
|
|
|
|
(string-append "PYTEST_CMD="
|
|
|
|
|
#$(this-package-native-input "python-pytest")
|
2022-10-16 02:00:03 +02:00
|
|
|
|
"/bin/pytest")
|
|
|
|
|
(string-append "PYTEST_ARGS=-k '"
|
|
|
|
|
;; These fail (‘invalid argument’) on
|
|
|
|
|
;; kernels with a previous bcachefs version.
|
|
|
|
|
"not test_format and "
|
|
|
|
|
"not test_fsck and "
|
|
|
|
|
"not test_list and "
|
|
|
|
|
"not test_list_inodes and "
|
|
|
|
|
"not test_list_dirent"
|
|
|
|
|
"'"))
|
2021-12-20 01:05:25 +01:00
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
|
(add-after 'install 'promote-mount.bcachefs.sh
|
|
|
|
|
;; XXX The (optional) ‘mount.bcachefs’ requires rust:cargo.
|
|
|
|
|
;; This shell alternative does the job well enough for now.
|
|
|
|
|
(lambda _
|
|
|
|
|
(with-directory-excursion (string-append #$output "/sbin")
|
|
|
|
|
(rename-file "mount.bcachefs.sh" "mount.bcachefs")
|
|
|
|
|
;; WRAP-SCRIPT causes bogus ‘Insufficient arguments’ errors.
|
|
|
|
|
(wrap-program "mount.bcachefs"
|
|
|
|
|
`("PATH" ":" prefix
|
|
|
|
|
,(list (string-append #$output "/sbin")
|
|
|
|
|
(string-append #$coreutils-minimal "/bin")
|
|
|
|
|
(string-append #$gawk "/bin")
|
2022-07-12 15:38:30 +02:00
|
|
|
|
(string-append #$util-linux "/bin"))))))))))
|
2020-01-20 02:23:59 +01:00
|
|
|
|
(native-inputs
|
2022-07-12 14:02:11 +02:00
|
|
|
|
(append
|
|
|
|
|
(list pkg-config
|
|
|
|
|
;; For tests.
|
|
|
|
|
python-pytest)
|
|
|
|
|
(if (member (%current-system) (package-supported-systems valgrind))
|
|
|
|
|
(list valgrind)
|
|
|
|
|
'())
|
|
|
|
|
;; For generating documentation with rst2man.
|
|
|
|
|
(list python
|
|
|
|
|
python-docutils)))
|
2020-01-20 02:23:59 +01:00
|
|
|
|
(inputs
|
2021-12-20 01:07:39 +01:00
|
|
|
|
(list eudev
|
|
|
|
|
keyutils
|
|
|
|
|
libaio
|
|
|
|
|
libscrypt
|
|
|
|
|
libsodium
|
|
|
|
|
liburcu
|
|
|
|
|
`(,util-linux "lib")
|
|
|
|
|
lz4
|
|
|
|
|
zlib
|
|
|
|
|
`(,zstd "lib")
|
|
|
|
|
;; Only for mount.bcachefs.sh.
|
|
|
|
|
coreutils-minimal
|
|
|
|
|
gawk
|
|
|
|
|
util-linux))
|
2020-01-20 02:23:59 +01:00
|
|
|
|
(home-page "https://bcachefs.org/")
|
|
|
|
|
(synopsis "Tools to create and manage bcachefs file systems")
|
|
|
|
|
(description
|
2020-01-31 00:24:00 +01:00
|
|
|
|
"The bcachefs-tools are command-line utilities for creating, checking,
|
2020-01-20 02:23:59 +01:00
|
|
|
|
and otherwise managing bcachefs file systems.
|
|
|
|
|
|
|
|
|
|
Bcachefs is a @acronym{CoW, copy-on-write} file system supporting native
|
|
|
|
|
encryption, compression, snapshots, and (meta)data checksums. It can use
|
|
|
|
|
multiple block devices for replication and/or performance, similar to RAID.
|
|
|
|
|
|
|
|
|
|
In addition, bcachefs provides all the functionality of bcache, a block-layer
|
|
|
|
|
caching system, and lets you assign different roles to each device based on its
|
|
|
|
|
performance and other characteristics.")
|
|
|
|
|
(license license:gpl2+))))
|
|
|
|
|
|
2020-11-05 21:45:09 +01:00
|
|
|
|
(define-public bcachefs-tools/static
|
2021-12-22 04:57:12 +01:00
|
|
|
|
(package
|
|
|
|
|
(inherit bcachefs-tools)
|
|
|
|
|
(name "bcachefs-tools-static")
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments bcachefs-tools)
|
|
|
|
|
((#:make-flags make-flags)
|
|
|
|
|
#~(append #$make-flags
|
|
|
|
|
(list "LDFLAGS=-static")))
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
#~(modify-phases #$phases
|
2021-10-23 16:48:39 +02:00
|
|
|
|
(add-after 'unpack 'skip-shared-library
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
;; Building the shared library with ‘-static’ obviously fails…
|
|
|
|
|
(("^((all|install):.*)\\blib\\b(.*)" _ prefix suffix)
|
|
|
|
|
(string-append prefix suffix "\n"))
|
|
|
|
|
;; …as does installing a now non-existent file.
|
|
|
|
|
((".*\\$\\(INSTALL\\).* lib.*") ""))))))))
|
2021-12-20 02:00:17 +01:00
|
|
|
|
(inputs (modify-inputs (package-inputs bcachefs-tools)
|
|
|
|
|
(prepend `(,eudev "static")
|
|
|
|
|
`(,keyutils "static")
|
|
|
|
|
`(,libscrypt "static")
|
|
|
|
|
`(,lz4 "static")
|
|
|
|
|
`(,util-linux "static")
|
|
|
|
|
`(,zlib "static")
|
|
|
|
|
`(,zstd "static"))))))
|
2020-11-05 21:45:09 +01:00
|
|
|
|
|
2020-11-05 21:46:29 +01:00
|
|
|
|
(define-public bcachefs/static
|
|
|
|
|
(package
|
|
|
|
|
(name "bcachefs-static")
|
|
|
|
|
(version (package-version bcachefs-tools))
|
|
|
|
|
(source #f)
|
2021-12-29 02:53:24 +01:00
|
|
|
|
(build-system trivial-build-system)
|
2020-11-05 21:46:29 +01:00
|
|
|
|
(arguments
|
2021-12-29 02:53:24 +01:00
|
|
|
|
(list #:modules '((guix build utils))
|
|
|
|
|
#:builder
|
|
|
|
|
#~(begin
|
|
|
|
|
(use-modules (guix build utils)
|
|
|
|
|
(ice-9 ftw)
|
|
|
|
|
(srfi srfi-26))
|
|
|
|
|
(mkdir-p #$output)
|
|
|
|
|
(with-directory-excursion #$output
|
|
|
|
|
(install-file (string-append #$(this-package-input
|
|
|
|
|
"bcachefs-tools-static")
|
|
|
|
|
"/sbin/bcachefs")
|
|
|
|
|
"sbin")
|
|
|
|
|
(remove-store-references "sbin/bcachefs")
|
|
|
|
|
(invoke "sbin/bcachefs" "version"))))) ; test suite
|
|
|
|
|
(inputs
|
|
|
|
|
(list bcachefs-tools/static))
|
2020-11-05 21:46:29 +01:00
|
|
|
|
(home-page (package-home-page bcachefs-tools))
|
|
|
|
|
(synopsis "Statically-linked bcachefs command from bcachefs-tools")
|
|
|
|
|
(description "This package provides the statically-linked @command{bcachefs}
|
|
|
|
|
from the bcachefs-tools package. It is meant to be used in initrds.")
|
|
|
|
|
(license (package-license bcachefs-tools))))
|
|
|
|
|
|
2020-04-16 23:58:37 +02:00
|
|
|
|
(define-public exfatprogs
|
|
|
|
|
(package
|
|
|
|
|
(name "exfatprogs")
|
2021-11-26 22:34:21 +01:00
|
|
|
|
(version "1.1.3")
|
2020-04-16 23:58:37 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/exfatprogs/exfatprogs")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2021-11-26 22:34:21 +01:00
|
|
|
|
(base32 "14lgwvbg6jibsdpzpcj484p9q4ixawyjxi9hw23w89c6870gglw9"))))
|
2020-04-16 23:58:37 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list "--disable-static")))
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list autoconf automake libtool pkg-config))
|
2020-04-16 23:58:37 +02:00
|
|
|
|
(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+)))
|
|
|
|
|
|
2017-01-04 10:42:38 +01:00
|
|
|
|
(define-public httpfs2
|
|
|
|
|
(package
|
|
|
|
|
(name "httpfs2")
|
|
|
|
|
(version "0.1.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2019-12-13 23:32:29 +01:00
|
|
|
|
(uri (string-append "mirror://sourceforge/httpfs/httpfs2/"
|
|
|
|
|
"httpfs2-" version ".tar.gz"))
|
2017-01-04 10:42:38 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1h8ggvhw30n2r6w11n1s458ypggdqx6ldwd61ma4yd7binrlpjq1"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list asciidoc docbook-xml libxml2 libxslt pkg-config))
|
2017-01-04 10:42:38 +01:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list fuse gnutls))
|
2017-01-04 10:42:38 +01:00
|
|
|
|
(arguments
|
2022-01-08 05:42:53 +01:00
|
|
|
|
(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
|
2022-01-08 05:44:35 +01:00
|
|
|
|
#~(list (string-append "CC=" #$(cc-for-target)))
|
2022-01-08 05:42:53 +01:00
|
|
|
|
#:parallel-build? #f ; can result in missing man pages
|
|
|
|
|
#:tests? #f)) ; no tests
|
2017-01-04 10:42:38 +01:00
|
|
|
|
(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+)))
|
2017-11-04 23:35:05 +01:00
|
|
|
|
|
2019-12-12 02:19:20 +01:00
|
|
|
|
(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"
|
2021-06-19 00:21:54 +02:00
|
|
|
|
"jfsutils-gcc-compat.patch"
|
2019-12-12 02:19:20 +01:00
|
|
|
|
"jfsutils-include-systypes.patch"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list `(,util-linux "lib")))
|
2019-12-12 02:19:20 +01:00
|
|
|
|
(home-page "http://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
|
|
|
|
|
|
2019-12-31 01:18:22 +01:00
|
|
|
|
(define-public jfsutils/static
|
|
|
|
|
(static-package
|
|
|
|
|
(package
|
|
|
|
|
(inherit jfsutils)
|
|
|
|
|
(name "jfsutils-static")
|
|
|
|
|
(inputs
|
|
|
|
|
`(("util-linux:static" ,util-linux "static")
|
|
|
|
|
,@(package-inputs jfsutils))))))
|
|
|
|
|
|
2019-12-31 01:22:22 +01:00
|
|
|
|
(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))))
|
|
|
|
|
|
2017-11-04 23:35:05 +01:00
|
|
|
|
(define-public disorderfs
|
|
|
|
|
(package
|
|
|
|
|
(name "disorderfs")
|
2021-02-08 08:39:24 +01:00
|
|
|
|
(version "0.5.11")
|
2017-11-04 23:35:05 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
2018-05-29 19:06:22 +02:00
|
|
|
|
(url "https://salsa.debian.org/reproducible-builds/disorderfs.git")
|
|
|
|
|
(commit version)))
|
2018-03-04 11:32:39 +01:00
|
|
|
|
(file-name (git-file-name name version))
|
2017-11-04 23:35:05 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-02-08 08:39:24 +01:00
|
|
|
|
"1pnrj0h8sgqwgsc18vz3fkqsp6vhigdbi75vdj0si1r6wgslnr7z"))))
|
2017-11-04 23:35:05 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list pkg-config))
|
2017-11-04 23:35:05 +01:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list fuse attr))
|
2017-11-04 23:35:05 +01:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
2018-10-30 21:49:28 +01:00
|
|
|
|
(delete 'configure)) ; no configure script
|
2017-11-04 23:35:05 +01:00
|
|
|
|
#: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))
|
2020-02-06 03:29:37 +01:00
|
|
|
|
(home-page "https://salsa.debian.org/reproducible-builds/disorderfs")
|
2018-01-19 16:25:13 +01:00
|
|
|
|
(synopsis "FUSE file system that introduces non-determinism")
|
2017-11-04 23:35:05 +01:00
|
|
|
|
(description
|
2018-01-19 16:25:13 +01:00
|
|
|
|
"An overlay FUSE file system that introduces non-determinism
|
|
|
|
|
into file system metadata. For example, it can randomize the order
|
2017-11-04 23:35:05 +01:00
|
|
|
|
in which directory entries are read. This is useful for detecting
|
|
|
|
|
non-determinism in the build process.")
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
2017-11-07 08:03:36 +01:00
|
|
|
|
(define-public glusterfs
|
|
|
|
|
(package
|
|
|
|
|
(name "glusterfs")
|
2019-11-28 09:06:29 +01:00
|
|
|
|
(version "7.0")
|
2017-11-07 08:03:36 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://download.gluster.org/pub/gluster/glusterfs/"
|
2019-11-28 09:06:29 +01:00
|
|
|
|
(version-major version) "/"
|
|
|
|
|
(version-major+minor version) "/"
|
|
|
|
|
"glusterfs-" version ".tar.gz"))
|
2017-11-07 08:03:36 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-11-28 09:06:29 +01:00
|
|
|
|
"0yzhx710ypj0j3m5dcgmmgvkp7p0rmmp2p7ld0axrm4vpwc2b1wa"))))
|
2017-11-07 08:03:36 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
2019-11-28 09:06:29 +01:00
|
|
|
|
(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
|
|
|
|
|
))
|
2017-11-07 08:03:36 +01:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2019-11-28 09:06:29 +01:00
|
|
|
|
(add-before 'configure 'autogen
|
|
|
|
|
(lambda _ (invoke "./autogen.sh"))))))
|
2017-11-07 08:03:36 +01:00
|
|
|
|
(native-inputs
|
2019-11-28 09:06:29 +01:00
|
|
|
|
`(("pkg-config" ,pkg-config)
|
gnu: Fix package references.
* gnu/packages/algebra.scm (iml)[inputs]: Correctly refer to package
inputs.
* gnu/packages/astronomy.scm (xplanet),
* gnu/packages/audio.scm (redkite, libaudec, lv2lint, lv2toweb),
* gnu/packages/bioconductor.scm (r-cummerbund),
* gnu/packages/chicken.scm (chicken),
* gnu/packages/conky.scm (conky),
* gnu/packages/cran.scm (r-latex2exp),
* gnu/packages/crates-io.scm (rust-rgb),
* gnu/packages/databases.scm (mariadb),
* gnu/packages/diffoscope.scm (reprotest),
* gnu/packages/file-systems.scm (glusterfs),
* gnu/packages/finance.scm (electron-cash),
* gnu/packages/games.scm (rinutils, ksudoku, kdiamond, kigo),
* gnu/packages/geo.scm (grass),
* gnu/packages/gnome.scm (libmediaart, gnome-contacts, geoclue),
* gnu/packages/gnucash.scm (aqbanking),
* gnu/packages/image.scm (mtpaint),
* gnu/packages/kde-internet.scm (kopete, ktorrent),
* gnu/packages/kde-utils.scm (kmousetool, kmouth, kronometer),
* gnu/packages/linphone.scm (liblinphone),
* gnu/packages/maths.scm (ppl),
* gnu/packages/mercury.scm (mercury-minimal),
* gnu/packages/music.scm (bjumblr, bschaffl, lsp-plugins,
spectacle-analyzer, helm, tap-lv2, wolf-shaper, shiru-lv2),
* gnu/packages/networking.scm (restinio),
* gnu/packages/prolog.scm (swi-prolog),
* gnu/packages/python-web.scm (gunicorn),
* gnu/packages/python-xyz.scm (python-docusign-esign),
* gnu/packages/ruby.scm (ruby-cucumber, ruby_version, ruby-addressable),
* gnu/packages/sagemath.scm (python-cypari2),
* gnu/packages/skarnet.scm (s6-linux-init),
* gnu/packages/vpn.scm (sshuttle),
* gnu/packages/web.scm (libcyaml),
* gnu/packages/xdisorg.scm (kbdd),
* gnu/packages/xorg.scm (xpra): Same.
2020-09-30 07:57:27 +02:00
|
|
|
|
("libtirpc" ,libtirpc)
|
|
|
|
|
("rpcsvc-proto" ,rpcsvc-proto)
|
2017-11-07 08:03:36 +01:00
|
|
|
|
("python-2" ,python-2) ; must be version 2
|
|
|
|
|
("flex" ,flex)
|
|
|
|
|
("bison" ,bison)
|
2019-11-28 09:06:29 +01:00
|
|
|
|
("libtool" ,libtool)
|
|
|
|
|
("autoconf" ,autoconf)
|
|
|
|
|
("automake" ,automake)
|
|
|
|
|
("cmocka" ,cmocka)))
|
2017-11-07 08:03:36 +01:00
|
|
|
|
(inputs
|
|
|
|
|
`(("acl" ,acl)
|
gnu: Fix package references.
* gnu/packages/algebra.scm (iml)[inputs]: Correctly refer to package
inputs.
* gnu/packages/astronomy.scm (xplanet),
* gnu/packages/audio.scm (redkite, libaudec, lv2lint, lv2toweb),
* gnu/packages/bioconductor.scm (r-cummerbund),
* gnu/packages/chicken.scm (chicken),
* gnu/packages/conky.scm (conky),
* gnu/packages/cran.scm (r-latex2exp),
* gnu/packages/crates-io.scm (rust-rgb),
* gnu/packages/databases.scm (mariadb),
* gnu/packages/diffoscope.scm (reprotest),
* gnu/packages/file-systems.scm (glusterfs),
* gnu/packages/finance.scm (electron-cash),
* gnu/packages/games.scm (rinutils, ksudoku, kdiamond, kigo),
* gnu/packages/geo.scm (grass),
* gnu/packages/gnome.scm (libmediaart, gnome-contacts, geoclue),
* gnu/packages/gnucash.scm (aqbanking),
* gnu/packages/image.scm (mtpaint),
* gnu/packages/kde-internet.scm (kopete, ktorrent),
* gnu/packages/kde-utils.scm (kmousetool, kmouth, kronometer),
* gnu/packages/linphone.scm (liblinphone),
* gnu/packages/maths.scm (ppl),
* gnu/packages/mercury.scm (mercury-minimal),
* gnu/packages/music.scm (bjumblr, bschaffl, lsp-plugins,
spectacle-analyzer, helm, tap-lv2, wolf-shaper, shiru-lv2),
* gnu/packages/networking.scm (restinio),
* gnu/packages/prolog.scm (swi-prolog),
* gnu/packages/python-web.scm (gunicorn),
* gnu/packages/python-xyz.scm (python-docusign-esign),
* gnu/packages/ruby.scm (ruby-cucumber, ruby_version, ruby-addressable),
* gnu/packages/sagemath.scm (python-cypari2),
* gnu/packages/skarnet.scm (s6-linux-init),
* gnu/packages/vpn.scm (sshuttle),
* gnu/packages/web.scm (libcyaml),
* gnu/packages/xdisorg.scm (kbdd),
* gnu/packages/xorg.scm (xpra): Same.
2020-09-30 07:57:27 +02:00
|
|
|
|
("fuse" ,fuse)
|
2017-11-07 08:03:36 +01:00
|
|
|
|
("openssl" ,openssl)
|
|
|
|
|
("liburcu" ,liburcu)
|
gnu: util-linux: Move libraries to separate output.
Fixes <https://bugs.gnu.org/37732>.
Reported by Diego Nicola Barbato <dnbarbato@posteo.de>.
* gnu/packages/linux.scm (util-linux)[outputs]: Add "lib".
[arguments]: Update #:configure-flags and the "move-static-libraries" phase
accordingly. Add phases "patch-build-scripts" and "adjust-pkg-config-files".
(e2fsprogs, psm, mtd-utils, f2fs-tools, f2fs-tools-1.7, eudev,
xfsprogs)[inputs]: Change to the "lib" output of UTIL-LINUX.
(btrfs-progs)[inputs]: Remove duplicate UTIL-LINUX inputs and change to use
the "lib" output.
* gnu/packages/admin.scm (pam-mount)[inputs]: Add UTIL-LINUX:LIB.
(testdisk)[inputs]: Change to the "lib" output of UTIL-LINUX.
* gnu/packages/android.scm (abootimg)[inputs]: Likewise.
* gnu/packages/audio.scm (jack-1)[propagated-inputs]: Likewise.
* gnu/packages/bootloaders.scm (syslinux, vboot-utils)[inputs]: Likewise.
* gnu/packages/chez.scm (chez-scheme)[inputs]: Likewise.
* gnu/packages/cryptsetup.scm (cryptsetup, cryptsetup-static)[inputs]: Likewise.
* gnu/packages/databases.scm (postgresql, 4store)[inputs]: Likewise.
* gnu/packages/disk.scm (ndctl, gptfdisk, fdisk, gparted, rmlint,
volume-key)[inputs]: Likewise.
(parted)[inputs]: Likewise.
[native-inputs]: Add UTIL-LINUX.
* gnu/packages/efi.scm (sbsigntools)[inputs]: Add UTIL-LINUX:LIB.
* gnu/packages/engineering.scm (lib3mf)[inputs]: Change to the "lib" output of
UTIL-LINUX.
* gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise.
* gnu/packages/file-systems.scm (glusterfs, jfsutils, zfs)[inputs]: Likewise.
* gnu/packages/firmware.scm (ovmf)[inputs]: Likewise.
* gnu/packages/fontutils.scm (fontconfig)[propagated-inputs]: Likewise.
* gnu/packages/freedesktop.scm (localed)[inputs]: Likewise.
* gnu/packages/glib.scm (glib, appstream-glib)[propagated-inputs]: Likewise.
* gnu/packages/gnome.scm (tracker, gnome-terminal)[inputs]: Likewise.
* gnu/packages/jupyter.scm (xeus)[inputs]: Likewise.
* gnu/packages/kde.scm (kpmcore)[inputs]: Likewise.
* gnu/packages/kodi.scm (crossguid)[inputs]: Likewise.
* gnu/packages/lighting.scm (ola)[inputs]: Likewise.
* gnu/packages/music.scm (libgig)[inputs]: Likewise.
* gnu/packages/nfs.scm (nfs-utils)[inputs]: Likewise.
* gnu/packages/opencog.scm (opencog)[inputs]: Likewise.
* gnu/packages/package-management.scm (msitools)[inputs]: Change to the "lib"
output of UTIL-LINUX.
* gnu/packages/password-utils.scm (pwsafe)[inputs]: Likewise.
* gnu/packages/telephony.scm (pjproject)[propagated-inputs]: Likewise.
* gnu/packages/rdf.scm (rasqal)[inputs]: Likewise.
* gnu/packages/search.scm (xapian)[inputs]: Likewise.
* gnu/packages/sssd.scm (sssd)[native-inputs]: Likewise.
* gnu/packages/storage.scm (ceph)[inputs]: Add UTIL-LINUX:LIB.
* gnu/packages/task-management.scm (taskwarrior)[inputs]: Change to the "lib"
output of UTIL-LINUX.
* gnu/packages/virtualization.scm (libvirt, xen)[inputs]: Likewise.
* gnu/packages/xorg.scm (libsm)[inputs]: Likewise.
2020-01-15 00:24:28 +01:00
|
|
|
|
("libuuid" ,util-linux "lib")
|
2017-11-07 08:03:36 +01:00
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("readline" ,readline)
|
2019-11-28 09:06:29 +01:00
|
|
|
|
("zlib" ,zlib)
|
gnu: Fix package references.
* gnu/packages/algebra.scm (iml)[inputs]: Correctly refer to package
inputs.
* gnu/packages/astronomy.scm (xplanet),
* gnu/packages/audio.scm (redkite, libaudec, lv2lint, lv2toweb),
* gnu/packages/bioconductor.scm (r-cummerbund),
* gnu/packages/chicken.scm (chicken),
* gnu/packages/conky.scm (conky),
* gnu/packages/cran.scm (r-latex2exp),
* gnu/packages/crates-io.scm (rust-rgb),
* gnu/packages/databases.scm (mariadb),
* gnu/packages/diffoscope.scm (reprotest),
* gnu/packages/file-systems.scm (glusterfs),
* gnu/packages/finance.scm (electron-cash),
* gnu/packages/games.scm (rinutils, ksudoku, kdiamond, kigo),
* gnu/packages/geo.scm (grass),
* gnu/packages/gnome.scm (libmediaart, gnome-contacts, geoclue),
* gnu/packages/gnucash.scm (aqbanking),
* gnu/packages/image.scm (mtpaint),
* gnu/packages/kde-internet.scm (kopete, ktorrent),
* gnu/packages/kde-utils.scm (kmousetool, kmouth, kronometer),
* gnu/packages/linphone.scm (liblinphone),
* gnu/packages/maths.scm (ppl),
* gnu/packages/mercury.scm (mercury-minimal),
* gnu/packages/music.scm (bjumblr, bschaffl, lsp-plugins,
spectacle-analyzer, helm, tap-lv2, wolf-shaper, shiru-lv2),
* gnu/packages/networking.scm (restinio),
* gnu/packages/prolog.scm (swi-prolog),
* gnu/packages/python-web.scm (gunicorn),
* gnu/packages/python-xyz.scm (python-docusign-esign),
* gnu/packages/ruby.scm (ruby-cucumber, ruby_version, ruby-addressable),
* gnu/packages/sagemath.scm (python-cypari2),
* gnu/packages/skarnet.scm (s6-linux-init),
* gnu/packages/vpn.scm (sshuttle),
* gnu/packages/web.scm (libcyaml),
* gnu/packages/xdisorg.scm (kbdd),
* gnu/packages/xorg.scm (xpra): Same.
2020-09-30 07:57:27 +02:00
|
|
|
|
("libaio" ,libaio)
|
|
|
|
|
("rdma-core" ,rdma-core)))
|
2017-11-07 08:03:36 +01:00
|
|
|
|
(home-page "https://www.gluster.org")
|
|
|
|
|
(synopsis "Distributed file system")
|
2018-01-19 16:25:13 +01:00
|
|
|
|
(description "GlusterFS is a distributed scalable network file system
|
2017-11-07 08:03:36 +01:00
|
|
|
|
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+))))
|
2018-01-16 17:34:22 +01:00
|
|
|
|
|
|
|
|
|
(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"))))
|
|
|
|
|
(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
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list curl glib fuse))
|
2018-01-16 17:34:22 +01:00
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list pkg-config))
|
2018-01-16 17:34:22 +01:00
|
|
|
|
(home-page "http://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+)))
|
2018-11-12 00:29:48 +01:00
|
|
|
|
|
2021-05-17 21:11:21 +02:00
|
|
|
|
(define-public libeatmydata
|
|
|
|
|
(package
|
|
|
|
|
(name "libeatmydata")
|
2021-12-20 02:29:47 +01:00
|
|
|
|
(version "130")
|
2021-05-17 21:11:21 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.flamingspork.com/projects/libeatmydata/"
|
|
|
|
|
"libeatmydata-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2021-12-20 02:29:47 +01:00
|
|
|
|
(base32 "1h212l2s0g3pv6q96d94dk7kpp9qzyxqydrrcgyp7zqjwvbiqws8"))))
|
2021-05-17 21:11:21 +02:00
|
|
|
|
(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)
|
2021-07-16 16:50:56 +02:00
|
|
|
|
(search-input-file inputs
|
|
|
|
|
(string-append "bin/" command))))))
|
2021-05-17 21:11:21 +02:00
|
|
|
|
(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
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://deb.debian.org/debian/pool/main/"
|
|
|
|
|
"libe/libeatmydata/libeatmydata_" version
|
2021-12-20 02:29:47 +01:00
|
|
|
|
"-2.debian.tar.xz"))
|
2021-05-17 21:11:21 +02:00
|
|
|
|
(sha256
|
2021-12-20 02:29:47 +01:00
|
|
|
|
(base32 "1sg9g1nv3wl9ymzz33ig4ns563npkbxj67a64m7p34cc813jl95w"))))
|
2021-05-17 21:11:21 +02:00
|
|
|
|
;; For the test suite.
|
|
|
|
|
("strace" ,strace)
|
|
|
|
|
("which" ,which)))
|
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list coreutils))
|
2021-05-17 21:11:21 +02:00
|
|
|
|
(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
|
2021-12-20 02:10:26 +01:00
|
|
|
|
example when running a software test suite. Adding @file{libeatmydata.so} to
|
2021-05-17 21:11:21 +02:00
|
|
|
|
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+)))
|
|
|
|
|
|
2018-12-06 07:23:22 +01:00
|
|
|
|
(define-public libnfs
|
|
|
|
|
(package
|
|
|
|
|
(name "libnfs")
|
2020-06-12 11:39:47 +02:00
|
|
|
|
(version "4.0.0")
|
2018-12-06 07:23:22 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 22:53:28 +02:00
|
|
|
|
(url "https://github.com/sahlberg/libnfs")
|
2018-12-06 07:23:22 +01:00
|
|
|
|
(commit (string-append "libnfs-" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-06-12 11:39:47 +02:00
|
|
|
|
"0i27wd4zvhjz7620q043p4d4mkx8zv2yz9adm1byin47dynahyda"))))
|
2018-12-06 07:23:22 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "https://github.com/sahlberg/libnfs")
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list autoconf automake libtool pkg-config))
|
2018-12-06 07:23:22 +01:00
|
|
|
|
(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
|
|
|
|
|
))))
|
|
|
|
|
|
2018-11-12 00:29:48 +01:00
|
|
|
|
(define-public apfs-fuse
|
2020-05-28 04:21:35 +02:00
|
|
|
|
;; Later versions require FUSE 3.
|
|
|
|
|
(let ((commit "7b89418e8dc27103d3c4f8fa348086ffcd634c17")
|
|
|
|
|
(revision "1"))
|
2018-11-12 00:29:48 +01:00
|
|
|
|
(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
|
2020-05-28 04:21:35 +02:00
|
|
|
|
"0x2siy3cmnm9wsdfazg3xc8r3kbg73gijmnn1vjw33pp71ckylxr"))
|
2018-11-12 00:29:48 +01:00
|
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; No test suite
|
2020-05-28 04:21:35 +02:00
|
|
|
|
#:configure-flags
|
|
|
|
|
'("-DUSE_FUSE3=OFF") ; FUSE 3 is not packaged yet.
|
2018-11-12 00:29:48 +01:00
|
|
|
|
#: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 "libapfs.a" lib)
|
2020-05-28 04:21:35 +02:00
|
|
|
|
(install-file "../source/README.md" doc)
|
2018-11-12 00:29:48 +01:00
|
|
|
|
#t))))))
|
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list bzip2 fuse zlib))
|
2019-04-15 22:14:03 +02:00
|
|
|
|
(synopsis "Read-only FUSE driver for the APFS file system")
|
2018-11-12 00:29:48 +01:00
|
|
|
|
(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+))))
|
2019-12-19 10:47:49 +01:00
|
|
|
|
|
2021-01-12 02:58:11 +01:00
|
|
|
|
(define-public xfstests
|
|
|
|
|
;; The last release (1.1.0) is from 2011.
|
2021-11-07 22:49:08 +01:00
|
|
|
|
(let ((revision "1")
|
|
|
|
|
(commit "bae1d15f6421cbe99b3e2e134c39d50248e7c261"))
|
2021-01-12 02:58:11 +01:00
|
|
|
|
(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
|
2021-11-07 22:49:08 +01:00
|
|
|
|
(base32 "01y7dx5sx1xg3dycqlp2b6azclz3xcnx7vdy2rr6zmf210501xd9"))))
|
2021-01-12 02:58:11 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#: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
|
|
|
|
|
(assoc-ref inputs "bash")
|
|
|
|
|
match))
|
|
|
|
|
(("/bin/(rm|true)" match)
|
2021-07-16 16:50:56 +02:00
|
|
|
|
(search-input-file inputs match))
|
2021-05-13 01:04:03 +02:00
|
|
|
|
(("/usr(/bin/time)" _ match)
|
2021-07-16 16:50:56 +02:00
|
|
|
|
(search-input-file inputs match))))
|
2021-01-12 02:58:11 +01:00
|
|
|
|
(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 outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out")))
|
|
|
|
|
(wrap-program (string-append out "/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 (name)
|
|
|
|
|
(let ((input (assoc-ref inputs name)))
|
|
|
|
|
(string-append input "/bin:"
|
|
|
|
|
input "/sbin")))
|
|
|
|
|
(list "acl"
|
|
|
|
|
"attr"
|
|
|
|
|
"coreutils"
|
|
|
|
|
"inetutils"
|
|
|
|
|
"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 outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(check (string-append out "/xfstests/check"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(helper (string-append bin "/xfstests-check")))
|
|
|
|
|
(mkdir-p bin)
|
|
|
|
|
(with-output-to-file helper
|
|
|
|
|
(lambda _
|
|
|
|
|
(format #t "#!~a --no-auto-compile\n!#\n"
|
2021-07-16 16:50:56 +02:00
|
|
|
|
(search-input-file inputs "/bin/guile"))
|
2021-01-12 02:58:11 +01:00
|
|
|
|
(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
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list autoconf automake libtool))
|
2021-01-12 02:58:11 +01:00
|
|
|
|
(inputs
|
|
|
|
|
`(("acl" ,acl)
|
|
|
|
|
("attr" ,attr)
|
|
|
|
|
("guile" ,guile-3.0) ; for our xfstests-check helper script
|
|
|
|
|
("inetutils" ,inetutils) ; for ‘hostname’
|
|
|
|
|
("libuuid" ,util-linux "lib")
|
|
|
|
|
("perl" ,perl) ; to automagically patch shebangs
|
|
|
|
|
("time" ,time)
|
|
|
|
|
("xfsprogs" ,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))))
|
|
|
|
|
|
2019-12-19 10:47:49 +01:00
|
|
|
|
(define-public zfs
|
|
|
|
|
(package
|
|
|
|
|
(name "zfs")
|
2022-10-04 19:59:23 +02:00
|
|
|
|
(version "2.1.6")
|
2019-12-19 10:47:49 +01:00
|
|
|
|
(outputs '("out" "module" "src"))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2021-08-02 17:54:13 +02:00
|
|
|
|
(uri (string-append "https://github.com/openzfs/zfs/releases"
|
2019-12-19 10:47:49 +01:00
|
|
|
|
"/download/zfs-" version
|
|
|
|
|
"/zfs-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2022-10-04 19:59:23 +02:00
|
|
|
|
(base32 "0ymxkms1gwf731x61sj54rnnp029724zhywkxd4164yjz0a90cqm"))))
|
2019-12-19 10:47:49 +01:00
|
|
|
|
(build-system linux-module-build-system)
|
|
|
|
|
(arguments
|
2022-05-12 17:05:16 +02:00
|
|
|
|
(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* "etc/Makefile.in"
|
|
|
|
|
;; This just contains an example configuration file for
|
|
|
|
|
;; configuring ZFS on traditional init systems, skip it
|
|
|
|
|
;; since we cannot use it anyway; the install target becomes
|
|
|
|
|
;; misdirected.
|
|
|
|
|
(("= default ") "= "))
|
|
|
|
|
(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* "contrib/Makefile.in"
|
|
|
|
|
;; This is not configurable nor is its hard-coded /usr prefix.
|
|
|
|
|
((" initramfs") ""))
|
|
|
|
|
(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* '("etc/zfs/Makefile.am"
|
|
|
|
|
"cmd/zed/Makefile.am")
|
|
|
|
|
(("\\$\\(sysconfdir)") (string-append #$output "/etc")))
|
|
|
|
|
(substitute* "cmd/vdev_id/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* "contrib/pyzfs/Makefile.in"
|
|
|
|
|
((".*install-lib.*") ""))
|
|
|
|
|
(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"))))))))
|
2019-12-19 10:47:49 +01:00
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list attr kmod pkg-config))
|
2022-05-12 17:05:16 +02:00
|
|
|
|
(inputs (list eudev
|
|
|
|
|
kmod
|
|
|
|
|
libaio
|
|
|
|
|
libtirpc
|
|
|
|
|
nfs-utils
|
|
|
|
|
openssl
|
|
|
|
|
python
|
|
|
|
|
python-cffi
|
|
|
|
|
util-linux
|
|
|
|
|
`(,util-linux "lib")
|
|
|
|
|
zlib))
|
2019-12-19 10:47:49 +01:00
|
|
|
|
(home-page "https://zfsonlinux.org/")
|
2021-03-11 13:56:48 +01:00
|
|
|
|
(synopsis "OpenZFS on Linux")
|
2019-12-19 10:47:49 +01:00
|
|
|
|
(description
|
2021-03-11 13:56:48 +01:00
|
|
|
|
"OpenZFS is an advanced file system and volume manager which was
|
2019-12-19 10:47:49 +01:00
|
|
|
|
originally developed for Solaris and is now maintained by the OpenZFS
|
|
|
|
|
community.")
|
|
|
|
|
(license license:cddl1.0)))
|
2020-05-30 19:10:30 +02:00
|
|
|
|
|
2021-03-14 09:40:47 +01:00
|
|
|
|
(define-public zfs-auto-snapshot
|
|
|
|
|
(package
|
|
|
|
|
(name "zfs-auto-snapshot")
|
|
|
|
|
(version "1.2.4")
|
|
|
|
|
(source
|
2021-05-13 16:04:17 +02:00
|
|
|
|
(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"))))
|
2021-03-14 09:40:47 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
2021-05-13 16:05:17 +02:00
|
|
|
|
;; 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.
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list zfs))
|
2021-03-14 09:40:47 +01:00
|
|
|
|
(arguments
|
2021-05-13 16:05:17 +02:00
|
|
|
|
`(#: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)))))
|
2021-03-14 09:40:47 +01:00
|
|
|
|
(home-page "https://github.com/zfsonlinux/zfs-auto-snapshot")
|
2021-05-13 15:58:25 +02:00
|
|
|
|
(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.
|
2021-03-14 09:40:47 +01:00
|
|
|
|
|
2021-05-13 15:58:25 +02:00
|
|
|
|
On Guix System, you will need to invoke the included shell scripts as
|
|
|
|
|
@code{job} definitions in your @code{operating-system} declaration.")
|
2021-03-14 09:40:47 +01:00
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
2020-05-30 19:10:30 +02:00
|
|
|
|
(define-public mergerfs
|
|
|
|
|
(package
|
|
|
|
|
(name "mergerfs")
|
2022-05-11 12:27:08 +02:00
|
|
|
|
(version "2.33.5")
|
2020-05-30 19:10:30 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2021-07-09 02:47:14 +02:00
|
|
|
|
(uri (string-append "https://github.com/trapexit/mergerfs/"
|
|
|
|
|
"releases/download/" version "/"
|
|
|
|
|
"mergerfs-" version ".tar.gz"))
|
2020-05-30 19:10:30 +02:00
|
|
|
|
(sha256
|
2022-05-11 12:27:08 +02:00
|
|
|
|
(base32 "0m0fg191ax855yb20vqpvn6v2gc3i5xdizx09pgpymj1ybxc7yyw"))))
|
2020-05-30 19:10:30 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2021-07-09 02:48:34 +02:00
|
|
|
|
`(#:make-flags
|
|
|
|
|
(list (string-append "CC=" ,(cc-for-target))
|
2021-07-09 02:56:08 +02:00
|
|
|
|
(string-append "CXX=" ,(cxx-for-target))
|
|
|
|
|
(string-append "PREFIX=" (assoc-ref %outputs "out")))
|
|
|
|
|
#:tests? #f ; all require a kernel with FUSE loaded
|
2020-05-30 19:10:30 +02:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2021-07-09 02:56:08 +02:00
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
|
(add-after 'unpack 'set-file-names
|
2020-05-30 19:10:30 +02:00
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2021-07-09 02:56:08 +02:00
|
|
|
|
(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 package.
|
|
|
|
|
(substitute* '("libfuse/lib/mount_util.c"
|
|
|
|
|
"libfuse/util/mount_util.c")
|
2020-05-30 19:10:30 +02:00
|
|
|
|
(("/bin/(u?)mount" _ maybe-u)
|
2021-07-16 16:50:56 +02:00
|
|
|
|
(search-input-file inputs
|
|
|
|
|
(string-append "bin/" maybe-u
|
|
|
|
|
"mount"))))
|
2020-05-30 19:10:30 +02:00
|
|
|
|
(substitute* '("libfuse/util/mount.mergerfs.c")
|
2021-07-09 02:52:47 +02:00
|
|
|
|
(("/bin/sh" command)
|
2022-10-09 11:31:30 +02:00
|
|
|
|
(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\");"))))))))
|
2021-07-09 02:56:08 +02:00
|
|
|
|
;; Mergerfs bundles a heavily modified copy of fuse.
|
2021-07-09 02:52:47 +02:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list bash-minimal util-linux))
|
2020-05-30 19:10:30 +02:00
|
|
|
|
(home-page "https://github.com/trapexit/mergerfs")
|
2020-07-09 16:44:27 +02:00
|
|
|
|
(synopsis "Featureful union file system")
|
|
|
|
|
(description "mergerfs is a union file system geared towards simplifying
|
2020-05-30 19:10:30 +02:00
|
|
|
|
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.
|
|
|
|
|
))))
|
2020-05-30 19:10:55 +02:00
|
|
|
|
|
|
|
|
|
(define-public mergerfs-tools
|
2021-07-09 03:20:50 +02:00
|
|
|
|
(let ((commit "3b6fe008517aeda715c306eaf4914f6f537da88d")
|
|
|
|
|
(revision "3"))
|
2020-05-30 19:10:55 +02:00
|
|
|
|
(package
|
|
|
|
|
(name "mergerfs-tools")
|
|
|
|
|
;; No released version exists.
|
2021-07-09 03:20:50 +02:00
|
|
|
|
(version (git-version "0.0.0" revision commit))
|
2020-05-30 19:10:55 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 22:53:28 +02:00
|
|
|
|
(url "https://github.com/trapexit/mergerfs-tools")
|
2020-05-30 19:10:55 +02:00
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2021-07-09 03:20:50 +02:00
|
|
|
|
(base32 "15pgym6c4viy57ccgp28dnqwh12f3gr02axg86y578aqa2yaa0ad"))))
|
2020-05-30 19:10:55 +02:00
|
|
|
|
(build-system copy-build-system)
|
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list python python-xattr rsync))
|
2020-05-30 19:10:55 +02:00
|
|
|
|
(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")
|
2021-07-16 16:50:56 +02:00
|
|
|
|
(search-input-file inputs "/bin/xattr"))
|
2020-05-30 19:10:55 +02:00
|
|
|
|
(("mkdir")
|
2021-07-16 16:50:56 +02:00
|
|
|
|
(search-input-file inputs "/bin/mkdir"))))))))
|
2020-05-30 19:10:55 +02:00
|
|
|
|
(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))))
|
2020-08-13 18:46:48 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-dropbox
|
|
|
|
|
(package
|
|
|
|
|
(name "python-dropbox")
|
2022-07-24 14:19:47 +02:00
|
|
|
|
(version "11.33.0")
|
2020-08-13 18:46:48 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "dropbox" version))
|
|
|
|
|
(sha256
|
2022-07-24 14:19:47 +02:00
|
|
|
|
(base32 "1hd9gprvcr6h0p8fxhynf97qf6799whfpsmr73g619392598nqvw"))))
|
2020-08-13 18:46:48 +02:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ; Tests require a network connection.
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list python-pytest python-pytest-runner))
|
2020-08-13 18:46:48 +02:00
|
|
|
|
(propagated-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list python-requests python-six python-stone))
|
2020-08-13 18:46:48 +02:00
|
|
|
|
(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)))
|
2020-08-13 18:49:03 +02:00
|
|
|
|
|
|
|
|
|
(define-public dbxfs
|
|
|
|
|
(package
|
|
|
|
|
(name "dbxfs")
|
2022-07-24 14:12:21 +02:00
|
|
|
|
(version "1.0.63")
|
2020-08-13 18:49:03 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2021-10-15 12:42:29 +02:00
|
|
|
|
;; 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))
|
2020-08-13 18:49:03 +02:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-07-24 14:12:21 +02:00
|
|
|
|
"1vzfhw3z2r0rb6s0qdzirh3pl7rv1z8xmxa0z5h7h1wqhpl05ai7"))
|
2020-08-13 18:49:03 +02:00
|
|
|
|
(patches (search-patches "dbxfs-remove-sentry-sdk.patch"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f)) ; tests requires safefs
|
|
|
|
|
(propagated-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list python-appdirs
|
|
|
|
|
python-block-tracing
|
|
|
|
|
python-dropbox
|
|
|
|
|
python-keyring
|
|
|
|
|
python-keyrings.alt
|
|
|
|
|
python-privy
|
|
|
|
|
python-userspacefs))
|
2021-10-12 12:21:22 +02:00
|
|
|
|
(home-page "https://thelig.ht/code/dbxfs/")
|
2020-08-13 18:49:03 +02:00
|
|
|
|
(synopsis "User-space file system for Dropbox")
|
|
|
|
|
(description
|
|
|
|
|
"@code{dbxfs} allows you to mount your Dropbox folder as if it were a
|
gnu: Fix typoes in package descriptions.
* gnu/packages/audio.scm (caps-plugins-lv2)[synopsis]: Fix typo.
* gnu/packages/bioconductor.scm (r-karyoploter, r-anota, r-gcrma)
(r-bigmemoryextras)[description]: Likewise.
* gnu/packages/cran.scm (r-geometry)[synopsis]: Likewise.
(r-stringdist, r-patchwork, r-depth, r-tea)[description]: Likewise.
* gnu/packages/crates-io.scm (rust-assert-fs-0.11, rust-notify-4)
(rust-tokio-fs-0.1)[synopsis, description]: Likewise.
(rust-blas-sys-0.7)[description]: Likewise.
(rust-fs-extra-1.1, rust-xattr-0.2)[synopsis]: Likewise.
* gnu/packages/databases.scm (perl-mysql-config)[description]: Likewise.
* gnu/packages/disk.scm (hddtemp)[description]: Likewise.
* gnu/packages/django.scm (python-djangorestframework)[description]:
Likewise.
* gnu/packages/documentation.scm (doc++)[description]: Likewise.
* gnu/packages/emacs-xyz.scm (emacs-kakoune, emacs-pyim-basedict, eless)
(emacs-scpaste)[description]: Likewise.
* gnu/packages/file-systems.scm (dbxfs)[description]: Likewise.
* gnu/packages/finance.scm (python-stdnum)[description]: Likewise.
* gnu/packages/fontutils.scm (woff2)[description]: Likewise.
* gnu/packages/games.scm (openttd-opengfx)[description]: Likewise.
* gnu/packages/gnome-xyz.scm (gnome-shell-extension-topicons-redux)
[description]: Likewise.
* gnu/packages/gnome.scm (libgrss)[description]: Likewise.
* gnu/packages/golang.scm (go-github-com-mitchellh-reflectwalk)
[description]: Likewise.
(go-github-com-go-git-go-billy)[synopsis, description]: Likewise.
* gnu/packages/haskell-check.scm (ghc-inspection-testing)[description]:
Likewise.
* gnu/packages/haskell-web.scm (ghc-yesod-form)[description]: Likewise.
* gnu/packages/haskell-xyz.scm (ghc-hex)[description]: Likewise.
* gnu/packages/hyperledger.scm (hyperledger-iroha-ed25519)[description]:
Likewise.
* gnu/packages/java.scm (java-mail)[synopsis]: Likewise.
(java-native-access-platform)[description]: Likewise.
* gnu/packages/kde-frameworks.scm (kactivities-stats)[description]:
Likewise.
* gnu/packages/kde-utils.scm (krusader)[description]: Likewise.
* gnu/packages/language.scm (praat)[description]: Likewise.
* gnu/packages/linux.scm (light)[description]: Likewise.
* gnu/packages/lisp-xyz.scm (sbcl-hu.dwim.defclass-star)[description]:
Likewise.
* gnu/packages/mail.scm (dovecot-trees, sieve-connect)[description]:
Likewise.
* gnu/packages/ocaml.scm (ocaml-opam-file-format, ocaml-cppo)
(ocaml4.07-ppx-variants-conv)[description]: Likewise.
* gnu/packages/perl.scm (perl-convert-binhex)[description]: Likewise.
* gnu/packages/python-crypto.scm (python-ecdsa)[description]: Likewise.
* gnu/packages/python-web.scm (python-html5lib)[synopsis, description]:
Likewise.
(python-venusian)[synopsis]: Likewise.
* gnu/packages/python-xyz.scm (python-readlike, python-gssapi)
(python-flufl-i18n)[description]: Likewise.
(python-pox, python-watchdog, python-xattr)[synopsis, description]:
Likewise.
* gnu/packages/ruby.scm (ruby-sorcerer)[description]: Likewise.
* gnu/packages/rust-apps.scm (watchexec)[description]: Likewise.
* gnu/packages/rust.scm (mrustc)[synopsis]: Likewise.
* gnu/packages/shells.scm (s-shell)[description]: Likewise.
* gnu/packages/ssh.scm (sshpass)[description]: Likewise.
* gnu/packages/terminals.scm (beep)[description]: Likewise.
* gnu/packages/web.scm (perl-lwp-useragent-cached)[description]:
Likewise.
* gnu/packages/wv.scm (wv)[description]: Likewise.
2020-09-22 21:31:52 +02:00
|
|
|
|
local file system using FUSE.")
|
2020-08-13 18:49:03 +02:00
|
|
|
|
(license license:gpl3+)))
|
2021-02-24 15:48:36 +01:00
|
|
|
|
|
|
|
|
|
(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
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list go-golang-org-x-sys))
|
2021-02-24 15:48:36 +01:00
|
|
|
|
(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)))
|
2021-02-24 15:49:37 +01:00
|
|
|
|
|
2021-07-07 03:44:29 +02:00
|
|
|
|
(define-public rewritefs
|
|
|
|
|
(let ((revision "0")
|
|
|
|
|
;; This is the last commit supporting our fuse@2.
|
|
|
|
|
(commit "31e2810b596028a12e49a08664567755f4b387b2"))
|
|
|
|
|
(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 "0k1aas2bdq2l3a6q3fvmngpakcxiws8qny2w6z7ffngyqxh33fv7"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((srfi srfi-26)
|
|
|
|
|
,@%gnu-build-system-modules)
|
|
|
|
|
#:make-flags
|
|
|
|
|
(list (string-append "PREFIX=" (assoc-ref %outputs "out")))
|
|
|
|
|
#: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* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(doc (string-append out "/share/doc/" ,name "-" ,version)))
|
|
|
|
|
(for-each (cut install-file <> (string-append doc "/examples"))
|
|
|
|
|
(find-files "." "^config\\."))))))))
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list pkg-config))
|
2021-07-07 03:44:29 +02:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list fuse pcre))
|
2021-07-07 03:44:29 +02:00
|
|
|
|
(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+))))
|
|
|
|
|
|
2021-02-24 15:49:37 +01:00
|
|
|
|
(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
|
|
|
|
|
`(#:import-path "github.com/oniony/TMSU"
|
2021-03-15 23:02:20 +01:00
|
|
|
|
#:unpack-path ".."
|
|
|
|
|
#:install-source? #f
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'install 'post-install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
;; The go build system produces /bin/TMSU -> install as /bin/tmsu
|
|
|
|
|
(rename-file (string-append out "/bin/TMSU")
|
|
|
|
|
(string-append out "/bin/tmsu"))))))))
|
2021-02-24 15:49:37 +01:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list go-github-com-mattn-go-sqlite3 go-github-com-hanwen-fuse))
|
2021-02-24 15:49:37 +01:00
|
|
|
|
(home-page "https://github.com/oniony/TMSU")
|
2021-04-09 19:47:41 +02:00
|
|
|
|
(synopsis "Tag files and access them through a virtual file system")
|
2021-02-24 15:49:37 +01:00
|
|
|
|
(description
|
|
|
|
|
"TMSU is a tool for tagging your files. It provides a simple
|
2021-04-09 19:47:41 +02:00
|
|
|
|
command-line utility for applying tags and a virtual file system to give you a
|
2021-02-24 15:49:37 +01:00
|
|
|
|
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+)))
|
2021-06-02 14:32:45 +02:00
|
|
|
|
|
|
|
|
|
(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
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list automake autoconf libtool pkg-config))
|
2021-06-02 14:32:45 +02:00
|
|
|
|
(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+)))
|