From f18acf342e6bd830a5062b8f3af35a7ae88724c9 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 12 Sep 2018 19:37:28 +0200 Subject: [PATCH] guix-config/config: Use dynamic kernel version number --- .guix-config/config.scm | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.guix-config/config.scm b/.guix-config/config.scm index 1652b613..8b0135d7 100644 --- a/.guix-config/config.scm +++ b/.guix-config/config.scm @@ -29,28 +29,23 @@ (use-package-modules bootloaders certs suckless ;; xorg ) -(define (linux-nonfree-urls version) - "Return a list of URLs for Linux-Nonfree VERSION." - (list (string-append - "https://www.kernel.org/pub/linux/kernel/v4.x/" - "linux-" version ".tar.xz"))) - (define-public linux-nonfree (package (inherit linux-libre) (name "linux-nonfree") - (version "4.14.33") + (version (package-version linux-libre-4.14)) (source (origin (method url-fetch) - (uri (linux-nonfree-urls - version - ;; (package-version linux-libre) - )) + (uri + (string-append + "https://www.kernel.org/pub/linux/kernel/v4.x/" + "linux-" version ".tar.xz")) (sha256 (base32 - "0c88p5vly63jsz62ff7971zl6vqzzbv5q519gi8z17ld66sf5063" ; 4.14.33 + ;; "0c88p5vly63jsz62ff7971zl6vqzzbv5q519gi8z17ld66sf5063" ; 4.14.33 ;; "0jwa2r3gpn4ahy38730b7g4xzavfqwxxwgyfhpn5ssvzsc4934gs" ; 4.16.6 + "1w0r7g04q9ac14krm5dmvl8sv88avsmdirvnfk964cz3n3xxbgb1" ; 4.14.69 )))))) (define-public linux-nonfree-firmware