From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Kernel config Date: Thu, 21 Jul 2016 17:30:31 +0200 Message-ID: <87k2gfm2js.fsf@gnu.org> References: <877fcliitk.fsf@elephly.net> <87twfp71pb.fsf@gnu.org> <87zipg17eh.fsf@gnu.org> <87mvlbp545.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]:57614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQFvt-0008V7-4W for help-guix@gnu.org; Thu, 21 Jul 2016 11:30:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQFvo-0001JR-SH for help-guix@gnu.org; Thu, 21 Jul 2016 11:30:40 -0400 In-Reply-To: (Vincent Legoll's message of "Thu, 21 Jul 2016 14:46:13 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Vincent Legoll Cc: help-guix@gnu.org Vincent Legoll skribis: > On Thu, Jul 21, 2016 at 2:06 PM, Ludovic Court=C3=A8s wrot= e: >> Here=E2=80=99s a more complete example that works for me. >> >> First, I have this linux-libre.scm file in my GUIX_PACKAGE_PATH: >> >> --8<---------------cut here---------------start------------->8--- >> (define-module (linux-libre) >> #:use-module (guix gexp) >> #:use-module (guix packages) >> #:use-module (gnu packages linux) >> #:use-module (srfi srfi-1)) >> >> (define-public my-own-linux-libre >> (package >> (inherit linux-libre) >> (name "linux-libre-for-myself") >> (native-inputs >> `(("kconfig" ,(local-file "./my-kernel.conf")) >> ,@(alist-delete "kconfig" (package-native-inputs linux-libre)))))) >> --8<---------------cut here---------------end--------------->8--- >> >> In the same directory lies the file =E2=80=98my-kernel.conf=E2=80=99. >> >> With this, I can do: >> >> --8<---------------cut here---------------start------------->8--- >> $ guix build linux-libre-for-myself -n --no-grafts >> The following derivation would be built: >> /gnu/store/23b25z660ahglylv5blm2l9cbrc639c2-linux-libre-for-myself-4.= 6.4.drv >> $ guix gc --references /gnu/store/23b25z660ahglylv5blm2l9cbrc639c2-linux= -libre-for-myself-4.6.4.drv | grep my-kernel >> /gnu/store/pq885cy0bi73acwh1wdx4agn5y5vrf2z-my-kernel.conf >> $ cat /gnu/store/pq885cy0bi73acwh1wdx4agn5y5vrf2z-my-kernel.conf >> Fake kernel conf. >> --8<---------------cut here---------------end--------------->8--- >> >> Does something similar works for you? > > No, I get: > > guix build: error: /home/vince/guix-packages/linux-libre.scm:8:2: > package `linux-libre-for-myself-4.5' has an invalid input: ("kconfig" > #< file: "./my-kernel.conf" absolute: # #> name: > "my-kernel.conf" recursive?: #f>) Support for using =E2=80=98local-file=E2=80=99 and similar in package input= s was added by commit da675305ddf2ba574e309e515d18ae1f778297be (June 15th). Could it be that you=E2=80=99re using an older Guix? Thanks, Ludo=E2=80=99.