guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: file-systems: Add a 'location' field to <file-system>.


From: Ludovic Courtès
Subject: 02/04: file-systems: Add a 'location' field to <file-system>.
Date: Thu, 5 Oct 2017 06:10:59 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit dd41a7f8d8d07a8638a19404072c78e9d0ac01b2
Author: Ludovic Courtès <address@hidden>
Date:   Wed Oct 4 21:35:31 2017 +0200

    file-systems: Add a 'location' field to <file-system>.
    
    * gnu/system/file-systems.scm (<file-system>)[location]: New field.
---
 gnu/system/file-systems.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm
index 52f1667..92f0404 100644
--- a/gnu/system/file-systems.scm
+++ b/gnu/system/file-systems.scm
@@ -38,6 +38,7 @@
             file-system-check?
             file-system-create-mount-point?
             file-system-dependencies
+            file-system-location
 
             file-system-type-predicate
 
@@ -101,7 +102,10 @@
   (create-mount-point? file-system-create-mount-point? ; Boolean
                        (default #f))
   (dependencies     file-system-dependencies      ; list of <file-system>
-                    (default '())))               ; or <mapped-device>
+                    (default '()))                ; or <mapped-device>
+  (location         file-system-location
+                    (default (current-source-location))
+                    (innate)))
 
 ;; Note: This module is used both on the build side and on the host side.
 ;; Arrange not to pull (guix store) and (guix config) because the latter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]