Skip to content

Instantly share code, notes, and snippets.

@lfam
Created May 17, 2019 13:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfam/5ff6cf847fb0b2833f8e3589b5b12647 to your computer and use it in GitHub Desktop.
Save lfam/5ff6cf847fb0b2833f8e3589b5b12647 to your computer and use it in GitHub Desktop.
Guix package for regular mainline stable Linux kernel
(define-module (my packages linux)
#:use-module (guix download)
#:use-module (guix packages)
#:use-module (gnu packages linux))
(define (linux-url version)
"Return a download URL for Linux VERSION."
(string-append "https://cdn.kernel.org/pub/linux/kernel/"
"v" (string-take version 1) ".x/"
"linux-" version ".tar.xz"))
(define-public linux
(package
(inherit linux-libre)
(name "linux")
(version "5.1.1")
(source (origin
(method url-fetch)
(uri (linux-url version))
(sha256
(base32
"1pcd0npnrjbc01rzmm58gh135w9nm5mf649asqlw50772qa9jkd0"))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment