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: Sun, 17 Jul 2016 19:49:58 +0200 Message-ID: <87zipg17eh.fsf@gnu.org> References: <877fcliitk.fsf@elephly.net> <87twfp71pb.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]:46446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOqCa-0008OH-Pq for help-guix@gnu.org; Sun, 17 Jul 2016 13:50:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOqCX-0007Xx-N4 for help-guix@gnu.org; Sun, 17 Jul 2016 13:50:04 -0400 In-Reply-To: (Vincent Legoll's message of "Sun, 17 Jul 2016 18:22:12 +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: > Would the following work in the mean time ? > > 1. Adding the following to gnu/packages/linux.scm : > > (define-public linux-libre-config variant > (package > (inherit linux-libre) > (native-inputs > (let ((conf (kernel-config (or (%current-target-system) > (%current-system)) > #:variant variant))) > `(,@(alist-delete "kconfig" (package-native-inputs linux-libre)) > ("kconfig" ,conf)))))) This should roughly work. However, I think one can already provide their own config file with something like: (define-public my-own-linux-libre (package (inherit linux-libre) (native-inputs `(("kconfig" ,(local-file "./my-kernel.conf")) ,@(alist-delete "kconfig" (package-native-inputs linux-libre)))))) =E2=80=A6 which can be dropped in a file in $GUIX_PACKAGE_PATH. It remains somewhat inconvenient, though. WDYT? Ludo=E2=80=99.