From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Making local development easy Date: Tue, 21 Jun 2016 10:43:01 +0200 Message-ID: <87lh1zc4q2.fsf@gnu.org> References: <57449CA9.3040502@cbaines.net> <5745CD08.6030209@cbaines.net> <878tyyhtsy.fsf@elephly.net> <87oa7tjl86.fsf@gnu.org> 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]:52337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFHH3-0003PS-71 for guix-devel@gnu.org; Tue, 21 Jun 2016 04:43:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFHGz-0008M3-0I for guix-devel@gnu.org; Tue, 21 Jun 2016 04:43:08 -0400 In-Reply-To: (David Thompson's message of "Thu, 26 May 2016 08:05:37 -0400") 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: "Thompson, David" Cc: guix-devel "Thompson, David" skribis: > On Thu, May 26, 2016 at 4:07 AM, Ludovic Court=C3=A8s wrot= e: > >> Even shorter: >> >> (source "/some/file/out/there") >> >> or: >> >> (source ".") > > I think there is a bug here because I've tried this at various points > in time and it has never worked. A pattern matcher somewhere fails > because a string isn't considered an acceptable source object. I haven=E2=80=99t experience this bug (and see "package-source-derivation, = file" in tests/packages.scm). However, I=E2=80=99m happy to say that since commit da675305ddf2ba574e309e515d18ae1f778297be, it is possible to use a =E2=80=98local-file=E2=80=99 there: (package ;; =E2=80=A6 (source (local-file "foo/bar" #:recursive? #t))) See =E2=80=98current-guix=E2=80=99 in (gnu packages package-management) for= an example. Ludo=E2=80=99.