From 659e191c1e9d64a9cf7734db6e9bb99e47877344 Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Mon, 1 Mar 2021 10:57:17 +0100 Subject: [PATCH] scripts: environment: Replace expression with definition. This fixes the following build error when building guix with GNU Guile 2.2.7 on Debian (bullseye) (reindented): guix/scripts/environment.scm:752:12: error: (define manifest (if profile (profile-manifest profile) manifest-from-opts)): definition in expression context, where definitions are not allowed, Fixes: . * guix/scripts/environment.scm (guix-environment): Fix a syntax error on Guile 2.2.7. --- guix/scripts/environment.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index a39347743e..a28018e627 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -745,9 +745,10 @@ message if any test fails." (with-status-verbosity (assoc-ref opts 'verbosity) (define manifest-from-opts (options/resolve-packages store opts)) - (when (and profile - (> (length (manifest-entries manifest-from-opts)) 0)) - (leave (G_ "'--profile' cannot be used with package options~%"))) + (define _ + (when (and profile + (> (length (manifest-entries manifest-from-opts)) 0)) + (leave (G_ "'--profile' cannot be used with package options~%")))) (define manifest (if profile -- 2.30.0