diff options
author | Marius Bakke <mbakke@fastmail.com> | 2020-05-02 17:31:28 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2020-05-02 17:31:28 +0200 |
commit | 50e6c1bf2ef2f006baa8cac80dfbb12ca2ba6d64 (patch) | |
tree | 64f16d207bad28a9dfda9cce95e6337483a40066 /gnu/packages/linux.scm | |
parent | a8cb1e72ef351330d1521833c1b270dcc0da593f (diff) | |
parent | afc57916e5398737e13d94b3823983783221eb63 (diff) | |
download | guix-50e6c1bf2ef2f006baa8cac80dfbb12ca2ba6d64.tar guix-50e6c1bf2ef2f006baa8cac80dfbb12ca2ba6d64.tar.gz |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/linux.scm')
-rw-r--r-- | gnu/packages/linux.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 0f424ca828..8b8945fbea 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4666,6 +4666,37 @@ disks and SD cards. This package provides the userland utilities.") (inputs `(("libuuid" ,util-linux "lib"))))) +(define-public f2fs-tools/static + (static-package + (package + (inherit f2fs-tools) + (name "f2fs-tools-static") + (arguments + `(#:configure-flags + (let ((libuuid-static (assoc-ref %build-inputs "libuuid:static")) + (libuuid (assoc-ref %build-inputs "libuuid"))) + (list + (string-append "libuuid_CFLAGS=-I" libuuid "/include") + (string-append "libuuid_LIBS=-L" libuuid-static "/lib -luuid") + (string-append "libblkid_CFLAGS=-I" libuuid "/include") + (string-append "libblkid_LIBS=-L" libuuid-static "/lib -lblkid"))) + #:disallowed-references (,util-linux) + #:phases + (modify-phases %standard-phases ; TODO: f2fs phases. + (add-after 'unpack 'make-static + (lambda _ + (define (append-to-file name body) + (let ((file (open-file name "a"))) + (display body file) + (close-port file))) + (append-to-file "mkfs/Makefile.am" "\nmkfs_f2fs_LDFLAGS = -all-static\n") + (append-to-file "fsck/Makefile.am" "\nfsck_f2fs_LDFLAGS = -all-static\n") + (append-to-file "tools/Makefile.am" "\nf2fscrypt_LDFLAGS = -all-static -luuid\n") + #t))))) + (inputs + `(("libuuid:static" ,util-linux "static") + ("libuuid" ,util-linux "lib")))))) ; for include files + (define-public freefall (package (name "freefall") |