summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-11-19 17:05:07 +0100
committerLudovic Courtès <ludo@gnu.org>2016-11-19 18:44:53 +0100
commite74f64b9e55cbc3052698830001238d2407fed19 (patch)
treefe2b0d8aba16272b4e51ea904c7907cc32b964e4 /guix
parent713335fa610713dc9491fc4848f5f5842423b143 (diff)
downloadguix-patches-e74f64b9e55cbc3052698830001238d2407fed19.tar
guix-patches-e74f64b9e55cbc3052698830001238d2407fed19.tar.gz
store: Add 'references*'.
* guix/store.scm (references*): New procedure. * guix/profiles.scm (manifest-lookup-package)[references*]: Remove. * guix/scripts/system.scm (references*): Remove. * tests/gexp.scm ("gexp->file", "gexp->file + file-append") ("gexp->derivation", "gexp->derivation, cross-compilation") ("gexp->derivation, ungexp + ungexp-native") ("scheme-file", "text-file*", "mixed-text-file"): Remove 'references*' instead of (store-lift references).
Diffstat (limited to 'guix')
-rw-r--r--guix/profiles.scm4
-rw-r--r--guix/scripts/system.scm3
-rw-r--r--guix/store.scm4
3 files changed, 4 insertions, 7 deletions
diff --git a/guix/profiles.scm b/guix/profiles.scm
index b56b8f4c79..0b317ef51e 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -501,10 +501,6 @@ if not found."
#t))))
items))
- ;; TODO: Factorize.
- (define references*
- (store-lift references))
-
(with-monad %store-monad
(match (manifest-entry-item entry)
((? package? package)
diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index 71ddccfa61..bb373a6726 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -77,9 +77,6 @@
;;; Installation.
;;;
-;; TODO: Factorize.
-(define references*
- (store-lift references))
(define topologically-sorted*
(store-lift topologically-sorted))
diff --git a/guix/store.scm b/guix/store.scm
index 3047dc39b9..7f54b87db1 100644
--- a/guix/store.scm
+++ b/guix/store.scm
@@ -98,6 +98,7 @@
built-in-builders
references
references/substitutes
+ references*
requisites
referrers
optimize-store
@@ -1170,6 +1171,9 @@ where FILE is the entry's absolute file name and STAT is the result of
(define set-build-options*
(store-lift set-build-options))
+(define references*
+ (store-lift references))
+
(define-inlinable (current-system)
;; Consult the %CURRENT-SYSTEM fluid at bind time. This is equivalent to
;; (lift0 %current-system %store-monad), but inlinable, thus avoiding