Vincent Legoll <vincent.leg...@gmail.com> 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))))))

… which can be dropped in a file in $GUIX_PACKAGE_PATH.

It remains somewhat inconvenient, though.

WDYT?

Ludo’.

Reply via email to