From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: 01/01: gnu: ccl: Include x86-headers and remove missing "contrib" folder. Date: Thu, 22 Nov 2018 10:18:29 +0100 Message-ID: <87r2fdcvx6.fsf@gnu.org> References: <20181118094017.18607.82174@vcs0.savannah.gnu.org> <20181118094018.8076B209C1@vcs0.savannah.gnu.org> <87sgzvy73u.fsf@gnu.org> <875zwrmvoi.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPlHJ-00054n-UP for guix-devel@gnu.org; Thu, 22 Nov 2018 04:28:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPl82-0000HJ-Kb for guix-devel@gnu.org; Thu, 22 Nov 2018 04:18:31 -0500 In-Reply-To: <875zwrmvoi.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Tue, 20 Nov 2018 19:49:01 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: guix-devel@gnu.org Hello, Pierre Neidhardt skribis: > Oops! Sorry for that. No problem. :-) > What would be the most lispy way to return nothing from the match? > I'm thinking of splicing the resulting lists, but that sounds a bit overk= ill: > > (let ((dirs '("lib" "library" "examples" "tools" "objc-bridge" > ,@(match (%current-system) > ("x86_64-linux" > '("x86-headers64")) > ("i686-linux" > '("x86-headers")) > (_ '()))))) > > Thoughts? LGTM. Make sure =E2=80=98guix build=E2=80=99 and =E2=80=98guix lint=E2=80= =99 are happy too. :-) Thanks, Ludo=E2=80=99.