guix-config/config: Use dynamic kernel version number

master
Pierre Neidhardt 2018-09-12 19:37:28 +02:00
parent 2724b20239
commit f18acf342e
1 changed files with 7 additions and 12 deletions

View File

@ -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