diff options
| author | movo987 <me@movo987.0x0f.dev> | 2026-11-28 09:31:11 +0000 |
|---|---|---|
| committer | movo987 <me@movo987.0x0f.dev> | 2026-11-28 09:31:11 +0000 |
| commit | 4f2d3c8cfa1880733c60372355dbf2e0efe362bd (patch) | |
| tree | 8acae8dbdb5eb36a091cebc2c040485dec09ba7b | |
| parent | Drop the netlink-sys 0.8.8 crate definition (diff) | |
Add linux-zako
* movo987/packages/linux.scm: New file.
Signed-off-by: movo987 <me@movo987.0x0f.dev>
| -rw-r--r-- | movo987/packages/linux.scm | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/movo987/packages/linux.scm b/movo987/packages/linux.scm new file mode 100644 index 0000000..775dd9b --- /dev/null +++ b/movo987/packages/linux.scm @@ -0,0 +1,93 @@ +;;; Copyright © 2026 movo987 <me@movo987.0x0f.dev> +;;; SPDX-License-Identifier: GPL-3.0-or-later + +(define-module (movo987 packages linux) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module (guix utils) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages linux) + #:use-module (gnu packages llvm) + #:export (linux-zako + linux-zako-headers)) + +(define %linux-zako-version "7.3.6") + +(define %linux-zako-commit + "b536efbd1506a9d3bae64779013f9cfff887109b") + +(define %linux-zako-zen-patch + (origin + (method url-fetch) + (uri (string-append + "https://git.0x0f.dev/movo987/linux-libre-zen-bore/plain/" + "releases/v7.3.6-zen.bore1/patches/0001-zen-7.3.6-zen1.patch")) + (file-name "linux-zako-0001-zen.patch") + (sha256 + (base32 "12liiba6h0gkwkwbbz5hxhchj1jba50kp7q0i2zja233ylmn5ig2")))) + +(define %linux-zako-bore-patch + (origin + (method url-fetch) + (uri (string-append + "https://git.0x0f.dev/movo987/linux-libre-zen-bore/plain/" + "releases/v7.3.6-zen.bore1/patches/0002-sched-bore-7.0.0.patch")) + (file-name "linux-zako-0002-bore.patch") + (sha256 + (base32 "1lz9dz7x149hbw4p581jcmlr9rw65kv5jdgzs5nr1di7wal25klx")))) + +(define %linux-zako-source + (origin + (method url-fetch) + (uri (string-append + "https://www.linux-libre.fsfla.org/pub/linux-libre/releases/" + %linux-zako-version "-gnu/linux-libre-" + %linux-zako-version "-gnu.tar.xz")) + (sha256 + (base32 "02a9lgsgc0xxcl7pdkgyy1ccs18amilzhb6fq8a37znwngpd50cl")) + (patches (list %linux-zako-zen-patch + %linux-zako-bore-patch)))) + +(define %linux-zako-defconfig + (origin + (method url-fetch) + (uri (string-append + "https://git.0x0f.dev/movo987/linux-zako/plain/defconfig?id=" + %linux-zako-commit)) + (file-name "linux-zako-defconfig") + (sha256 + (base32 "1izkz16vkz19pfh16rghdadk6030q1d5rdry4qdi93z6vmhzzp8p")))) + +(define %linux-zako-base + (customize-linux + #:name "linux-zako" + #:linux (package + (inherit linux-libre) + (version %linux-zako-version) + (source %linux-zako-source)) + #:defconfig %linux-zako-defconfig)) + +(define-public linux-zako + (package + (inherit %linux-zako-base) + (native-inputs + (modify-inputs (package-native-inputs %linux-zako-base) + (prepend clang lld llvm))) + (arguments + (substitute-keyword-arguments (package-arguments %linux-zako-base) + ((#:make-flags make-flags '()) + #~(list "LLVM=1")))) + (synopsis "Linux-libre kernel with Zen patches and BORE") + (description + "Linux-libre kernel with the Zen patchset and the BORE scheduler, +configured for ShinKouyo's desktop system.") + (home-page "https://git.0x0f.dev/movo987/linux-zako.git") + (license license:gpl2))) + +(define-public linux-zako-headers + (package + (inherit linux-libre-headers-7.3) + (name "linux-zako-headers") + (version %linux-zako-version) + (source %linux-zako-source))) |
