From dd6b9a3790b8d545c7254dedeb81630a6fa1d66a Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 24 Jan 2013 23:33:30 +0100 Subject: packages: Mark the `inputs' field of as thunked. * guix/packages.scm ()[inputs]: Mark as thunked. (package-derivation)[expand-input]: Remove case where the input is a procedure. * tests/packages.scm ("trivial with system-dependent input"): Remove `lambda', and use (%current-system). * gnu/packages/bootstrap.scm (package-from-tarball): Likewise for `inputs'. (%bootstrap-glibc, %bootstrap-gcc): Likewise. * gnu/packages/scheme.scm (mit-scheme): Likewise. --- guix/packages.scm | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'guix') diff --git a/guix/packages.scm b/guix/packages.scm index a76e51a5d0..f1cd83c7e4 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -113,7 +113,7 @@ representation." (default '()) (thunked)) (inputs package-inputs ; input packages or derivations - (default '())) + (default '()) (thunked)) (propagated-inputs package-propagated-inputs ; same, but propagated (default '())) (native-inputs package-native-inputs ; native input packages/derivations @@ -272,15 +272,6 @@ PACKAGE for SYSTEM." (list name (intern file))) (((? string? name) (? origin? source)) (list name (package-source-derivation store source system))) - ((and i ((? string? name) (? procedure? proc) sub-drv ...)) - ;; This form allows PROC to make a SYSTEM-dependent choice. - - ;; XXX: Currently PROC must return a .drv, a store path, a local - ;; file name, or an . If it were allowed to return a - ;; package, then `transitive-inputs' and co. would need to be - ;; adjusted. - (let ((input (proc system))) - (expand-input (cons* name input sub-drv)))) (x (raise (condition (&package-input-error (package package) -- cgit v1.2.3