[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
29/155: gnu: Add fatfsck-static.
From: |
John Darrington |
Subject: |
29/155: gnu: Add fatfsck-static. |
Date: |
Wed, 21 Dec 2016 20:48:31 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit 3a75d3bcd3b8e427b62e00a26aabd489c74573a5
Author: Marius Bakke <address@hidden>
Date: Thu Nov 3 09:43:30 2016 +0000
gnu: Add fatfsck-static.
* gnu/packages/disk.scm (dosfstools/static): New private variable.
(fatfsck/static): New variable.
---
gnu/packages/disk.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index 4afd2c2..a4bb0be 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -6,6 +6,7 @@
;;; Copyright © 2016 Efraim Flashner <address@hidden>
;;; Copyright © 2016 Jan Nieuwenhuizen <address@hidden>
;;; Copyright © 2016 Roel Janssen <address@hidden>
+;;; Copyright © 2016 Marius Bakke <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -27,6 +28,7 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system trivial)
#:use-module (gnu packages)
#:use-module (gnu packages base)
#:use-module (gnu packages docbook)
@@ -197,6 +199,40 @@ to recover data more efficiently by only reading the
necessary blocks.")
which respectively make and check MS-DOS FAT file systems.")
(license license:gpl3+)))
+(define dosfstools/static
+ (static-package
+ (package (inherit dosfstools))))
+
+(define-public fatfsck/static
+ (package
+ (name "fatfsck-static")
+ (version (package-version dosfstools))
+ (build-system trivial-build-system)
+ (source #f)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let ((src (string-append (assoc-ref %build-inputs "dosfstools")
+ "/sbin"))
+ (exe "fsck.fat")
+ (bin (string-append (assoc-ref %outputs "out") "/sbin")))
+ (mkdir-p bin)
+ (with-directory-excursion bin
+ (copy-file (string-append src "/" exe) exe)
+ (remove-store-references exe)
+ (chmod exe #o555)
+ ;; Add fsck.vfat symlink to match the Linux driver name.
+ (symlink exe "fsck.vfat")
+ #t)))))
+ (inputs `(("dosfstools" ,dosfstools/static)))
+ (home-page (package-home-page dosfstools))
+ (synopsis "Statically linked fsck.fat from dosfstools")
+ (description "This package provides a statically-linked @command{fsck.fat}
+and a @command{fsck.vfat} compatibility symlink for use in an initrd.")
+ (license (package-license dosfstools))))
+
(define-public sdparm
(package
(name "sdparm")
- 08/155: installer: Add IETF contraints for hostname in entry form., (continued)
- 08/155: installer: Add IETF contraints for hostname in entry form., John Darrington, 2016/12/21
- 07/155: installer: Use ice-9 match., John Darrington, 2016/12/21
- 06/155: installer: use ice-9 format everywhere., John Darrington, 2016/12/21
- 19/155: refresh: Make dependency on (guix import crates) weak., John Darrington, 2016/12/21
- 16/155: gnu: grub: Add dependency on efibootmgr., John Darrington, 2016/12/21
- 20/155: download: Protect against dangling symlinks in $SSL_CERT_DIR., John Darrington, 2016/12/21
- 11/155: installer: Change "interfaces" from a variable to a procedure., John Darrington, 2016/12/21
- 21/155: profiles: Build profiles in a UTF-8 locale., John Darrington, 2016/12/21
- 09/155: installer: Use a record instead of a list to contain tasks., John Darrington, 2016/12/21
- 13/155: installer: Use call-with-temporary-output-file., John Darrington, 2016/12/21
- 29/155: gnu: Add fatfsck-static.,
John Darrington <=
- 24/155: build: assert-no-store-file-names: Ignore ChangeLog., John Darrington, 2016/12/21
- 18/155: install: Add dosfstools., John Darrington, 2016/12/21
- 23/155: gnu: libupnp: Fix CVE-2016-8863., John Darrington, 2016/12/21
- 25/155: gnu: acme-client: Provide path to certificates., John Darrington, 2016/12/21
- 34/155: import cran: Do not use "or later" licenses by default., John Darrington, 2016/12/21
- 36/155: import cran: Handle BSD licenses with LICENSE file., John Darrington, 2016/12/21
- 15/155: doc: "Nar" now means "normalized archive"., John Darrington, 2016/12/21
- 14/155: Revert "gnu: kmod: Update to 23.", John Darrington, 2016/12/21
- 22/155: gnu: Add Greek Aspell dictionary, John Darrington, 2016/12/21
- 12/155: installer: Add gurses modules., John Darrington, 2016/12/21