summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Kehayias <john.kehayias@protonmail.com>2022-12-29 00:36:21 -0500
committerJohn Kehayias <john.kehayias@protonmail.com>2022-12-29 00:39:44 -0500
commitee2826e22be82ebd624b4daeadc6de97eaa69d02 (patch)
treeac528f3badec1bb5831003796da7da9219292a05
parent06b180c556cfa0a15869ebd7a6b3c1670cc3f1f2 (diff)
Revert "Revert "nongnu: corrupt-linux: Rewrite to use customize-linux.""
This reverts commit 370749ab7bf8782e1f9a3cc6d9c38bf444fc3fe7, reinstating commit 3d53be2c5cc9e0a8f5a76447eb392d7b0901232d now that 1.4.0 has been released. Original commit message: This simplifies our linux package definitions to not need hash updates as they simply follow from the inherited part of the source field. The newly added 'customize-linux' procedure from Guix is the preferred way to customize the kernel as well. * nongnu/packages/linux.scm (corrupt-linux): No longer take 'version' or 'hash' arguments. Inherit from 'customize-linux' as a starting package. Remove patch for now removed 'build-doc' phase. (linux-6.0, linux-5.15, linux-5.10, linux-5.4, linux4.19, linux-4.14, linux-4.9, linux-arm64-generic-6.0, linux-arm64-generic-5.15): Remove version and hash strings.
-rw-r--r--nongnu/packages/linux.scm61
1 files changed, 22 insertions, 39 deletions
diff --git a/nongnu/packages/linux.scm b/nongnu/packages/linux.scm
index 642363f..1281c0b 100644
--- a/nongnu/packages/linux.scm
+++ b/nongnu/packages/linux.scm
@@ -42,69 +42,52 @@
42 (list (string-append "https://www.kernel.org/pub/linux/kernel/v" 42 (list (string-append "https://www.kernel.org/pub/linux/kernel/v"
43 (version-major version) ".x/linux-" version ".tar.xz"))) 43 (version-major version) ".x/linux-" version ".tar.xz")))
44 44
45(define* (corrupt-linux freedo version hash #:key (name "linux")) 45(define* (corrupt-linux freedo #:key (name "linux"))
46 (package 46 (package
47 (inherit freedo) 47 (inherit
48 (name name) 48 (customize-linux
49 (version version) 49 #:name name
50 (source (origin 50 #:source (origin (inherit (package-source freedo))
51 (method url-fetch) 51 (method url-fetch)
52 (uri (linux-urls version)) 52 (uri (linux-urls (package-version freedo)))
53 (sha256 (base32 hash)) 53 (patches '()))))
54 ;; By default the linux-libre package will "make infodocs" for 54 (version (package-version freedo))
55 ;; supported kernels (version > 5.10) which needs the following 55 (home-page "https://www.kernel.org/")
56 ;; patch. Include the patch if it applies rather than disabling 56 (synopsis "Linux kernel with nonfree binary blobs included")
57 ;; the associated "build-doc" phase. 57 (description
58 (patches (if ((@@ (gnu packages linux) doc-supported?) version) 58 "The unmodified Linux kernel, including nonfree blobs, for running Guix
59 (search-patches "linux-libre-infodocs-target.patch")
60 '()))))
61 (home-page "https://www.kernel.org/")
62 (synopsis "Linux kernel with nonfree binary blobs included")
63 (description
64 "The unmodified Linux kernel, including nonfree blobs, for running Guix
65System on hardware which requires nonfree software to function."))) 59System on hardware which requires nonfree software to function.")))
66 60
67(define-public linux-6.0 61(define-public linux-6.0
68 (corrupt-linux linux-libre-6.0 "6.0.12" 62 (corrupt-linux linux-libre-6.0))
69 "00ag63lnxw2gijw3b6v29lhrlv480m12954q5zh4jawlz3nk1dw9"))
70 63
71(define-public linux-5.15 64(define-public linux-5.15
72 (corrupt-linux linux-libre-5.15 "5.15.82" 65 (corrupt-linux linux-libre-5.15))
73 "0r8v7113favmch2x6br7jk6idihza99l9qyd7ik99i5sg6xzdvpw"))
74 66
75(define-public linux-5.10 67(define-public linux-5.10
76 (corrupt-linux linux-libre-5.10 "5.10.158" 68 (corrupt-linux linux-libre-5.10))
77 "1rq7lyp41fydybs53rcdjhiy271arh95xch16s5s3jhhanxj82hy"))
78 69
79(define-public linux-5.4 70(define-public linux-5.4
80 (corrupt-linux linux-libre-5.4 "5.4.224" 71 (corrupt-linux linux-libre-5.4))
81 "0dixs4w7nmkjgxv9dxgjdy8v6r4parkpqyvdfyr0wqk0amdz4zcb"))
82 72
83(define-public linux-4.19 73(define-public linux-4.19
84 (corrupt-linux linux-libre-4.19 "4.19.265" 74 (corrupt-linux linux-libre-4.19))
85 "1l5cdpgng1gci1p1gdr2jzqw486h3w56gpyc7fbq74hlc6nnwh1p"))
86 75
87(define-public linux-4.14 76(define-public linux-4.14
88 (corrupt-linux linux-libre-4.14 "4.14.299" 77 (corrupt-linux linux-libre-4.14))
89 "0p5ic2mrb9vl3qkzvqxhia3kygjv8xa6s1kqkwgd6b4rmq1kc8r6"))
90 78
91(define-public linux-4.9 79(define-public linux-4.9
92 (corrupt-linux linux-libre-4.9 "4.9.333" 80 (corrupt-linux linux-libre-4.9))
93 "0ash877gkrrc063h6ncl9d4gzyhndanpxsdgf1a93abbfv281gs1"))
94 81
95(define-public linux linux-6.0) 82(define-public linux linux-6.0)
96;; linux-lts points to the *newest* released long-term support version. 83;; linux-lts points to the *newest* released long-term support version.
97(define-public linux-lts linux-5.15) 84(define-public linux-lts linux-5.15)
98 85
99(define-public linux-arm64-generic-6.0 86(define-public linux-arm64-generic-6.0
100 (corrupt-linux linux-libre-arm64-generic "6.0.9" 87 (corrupt-linux linux-libre-arm64-generic #:name "linux-arm64-generic"))
101 "1irip1yk62carcisxlacwcxsiqib4qswx6h5mfhv8f97x04a4531"
102 #:name "linux-arm64-generic"))
103 88
104(define-public linux-arm64-generic-5.15 89(define-public linux-arm64-generic-5.15
105 (corrupt-linux linux-libre-arm64-generic "5.15.79" 90 (corrupt-linux linux-libre-arm64-generic #:name "linux-arm64-generic"))
106 "0m61k7k6lj24z9a266q08wzghggjik2wizcabdwd1vn0vcqr18yb"
107 #:name "linux-arm64-generic"))
108 91
109(define-public linux-arm64-generic linux-arm64-generic-6.0) 92(define-public linux-arm64-generic linux-arm64-generic-6.0)
110 93