rosenthal: linux-cachyos: Really make substitutable.

Follow-up to 625844a768b0aa4b3739d2c88c057dacfebcf314.
This commit is contained in:
Hilton Chain committed 2026-10-05 11:54:18 +08:00
1 parent 641f1fbd71
commit 34502202bf
1 file changed
+75 -77
+75 -77
View File
@@ -295,82 +295,80 @@
(file-append source path))) (file-append source path)))
(define-public linux-cachyos-lts-server (define-public linux-cachyos-lts-server
(let ((version "6.18.55-1")) (let* ((version "6.18.55-1")
(linux-with-zfs (kernel
(customize-linux (customize-linux
#:name "linux-cachyos-lts-server" #:name "linux-cachyos-lts-server"
#:linux #:source
(hidden-package (origin
(package (method url-fetch)
(inherit linux-libre) (uri (string-append
(version version) "https://github.com/CachyOS/linux/releases/download/cachyos-"
(arguments version "/cachyos-" version ".tar.gz"))
(substitute-keyword-arguments arguments (sha256
((#:substitutable? _ #f) #t))) (base32 "1x9hymblmpj90dhwlz7lsfkdw8fjjpnghhg0yk3qmf9x16v8nrd3")))
(supported-systems '("x86_64-linux")))) #:defconfig (%kernel-config "/defconfig_server")
#:source #:configs
(origin (string-join
(method url-fetch) (append (cachyos-configs
(uri (string-append #:major-version (version-major version)
"https://github.com/CachyOS/linux/releases/download/cachyos-" #:cachy-config? #f
version "/cachyos-" version ".tar.gz")) #:cpusched 'eevdf
(sha256 #:cc-harder? #t
(base32 "1x9hymblmpj90dhwlz7lsfkdw8fjjpnghhg0yk3qmf9x16v8nrd3"))) #:per-gov? #f
#:defconfig (%kernel-config "/defconfig_server") #:tcp-bbr3? #t
#:configs #:HZ-ticks 300
(string-join #:tickrate 'full
(append (cachyos-configs #:preempt 'none
#:major-version (version-major version) #:hugepage 'always
#:cachy-config? #f #:processor-opt 'generic)
#:cpusched 'eevdf (default-initrd-configs))
#:cc-harder? #t "\n"))))
#:per-gov? #f (hidden-package
#:tcp-bbr3? #t (package
#:HZ-ticks 300 (inherit (linux-with-zfs kernel))
#:tickrate 'full (version version)
#:preempt 'none (arguments
#:hugepage 'always (substitute-keyword-arguments arguments
#:processor-opt 'generic) ((#:substitutable? _ #f) #t)))
(default-initrd-configs)) (supported-systems '("x86_64-linux"))))))
"\n")))))
(define-public linux-cachyos-bore-zen4 (define-public linux-cachyos-bore-zen4
(let ((version "7.2.9-2")) (let* ((version "7.2.9-2")
(linux-with-zfs (kernel
(customize-linux (customize-linux
#:name "linux-cachyos-bore-zen4" #:name "linux-cachyos-bore-zen4"
#:linux #:source
(hidden-package (origin
(package (method url-fetch)
(inherit linux-libre) (uri (string-append
(version version) "https://github.com/CachyOS/linux/releases/download/cachyos-"
(arguments version "/cachyos-" version ".tar.gz"))
(substitute-keyword-arguments arguments (sha256
((#:substitutable? _ #f) #t))) (base32 "1fpwmihnv9j9bvhcviia5k1dlilr0mcv17ch8rznadhlwgzyda9d"))
(supported-systems '("x86_64-linux")))) (patches (map %kernel-config '("/patches/bore-cachy-7.2.patch"))))
#:source #:defconfig (%kernel-config "/defconfig_desktop")
(origin #:configs
(method url-fetch) (string-join
(uri (string-append (append (cachyos-configs
"https://github.com/CachyOS/linux/releases/download/cachyos-" #:major-version (version-major version)
version "/cachyos-" version ".tar.gz")) #:cachy-config? #t
(sha256 #:cpusched 'bore
(base32 "1fpwmihnv9j9bvhcviia5k1dlilr0mcv17ch8rznadhlwgzyda9d")) #:cc-harder? #t
(patches (map %kernel-config '("/patches/bore-cachy-7.2.patch")))) #:per-gov? #f
#:defconfig (%kernel-config "/defconfig_desktop") #:tcp-bbr3? #t
#:configs #:HZ-ticks 1000
(string-join #:tickrate 'full
(append (cachyos-configs #:preempt 'full
#:major-version (version-major version) #:hugepage 'always
#:cachy-config? #t #:processor-opt 'zen4)
#:cpusched 'bore (default-initrd-configs))
#:cc-harder? #t "\n"))))
#:per-gov? #f (hidden-package
#:tcp-bbr3? #t (package
#:HZ-ticks 1000 (inherit (linux-with-zfs kernel))
#:tickrate 'full (version version)
#:preempt 'full (arguments
#:hugepage 'always (substitute-keyword-arguments arguments
#:processor-opt 'zen4) ((#:substitutable? _ #f) #t)))
(default-initrd-configs)) (supported-systems '("x86_64-linux"))))))
"\n")))))