git.iko.soy/typeable/nixpkgs
on master help sign in
linux_testing_bcachefs: 5.9.0-2020.11.20 -> 5.13-2021-07-08

Changes the package to apply a patchset to the appropriate minor kernel instead of using its initial release, which means it will benefit from revision updates.

commitcb1b1cf9c69ed49c617747fd8a168a8933fbe4ce authorhyperfekt <git@hyperfekt.net> dateThu 20 May 2021, 03:05 (5 years ago) parent664ebda
2 files changed+32−25
pkgs/os-specific/linux/kernel/linux-testing-bcachefs.nix+29−20 pkgs/top-level/all-packages.nix+3−5
pkgs/os-specific/linux/kernel/linux-testing-bcachefs.nix+29−20
@@ -1,24 +1,33 @@
1−{ lib, buildPackages, fetchFromGitHub, fetchpatch, perl, buildLinux, ... } @ args:
1+{ lib
2+, fetchpatch
3+, kernel
4+, date ? "2021-07-08"
5+, commit ? "3693b2ca83ff9eda49660b31299d2bebe3a1075f"
6+, diffHash ? "1sfq3vwc2kxa761s292f2cqrm0vvqvkdx6drpyn5yaxwnapwidcw"
7+, kernelPatches # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage
8+, argsOverride ? {}
9+, ...
10+} @ args:
211
3−buildLinux (args // {
4− version = "5.9.0-2020.11.20";
5− modDirVersion = "5.9.0";
12+kernel.override ( args // {
613
7− src = fetchFromGitHub {
8− owner = "koverstreet";
9− repo = "bcachefs";
10− # commit does not exist on any branch on the target repository
11− rev = "6a505b63ed3003faf5000f19fd08bbd477d93fbc";
12− sha256 = "1rf34gzv9npafp1c3i6lymk3b0gnqp4rb0wl33pw6yrpgnsry3cc";
13− };
14+ argsOverride = {
15+ version = "${kernel.version}-bcachefs-unstable-${date}";
16+ extraMeta = {
17+ branch = "master";
18+ maintainers = with lib.maintainers; [ davidak chiiruno ];
19+ platforms = [ "x86_64-linux" ];
20+ };
21+ } // argsOverride;
1422
15− extraConfig = "BCACHEFS_FS m";
23+ kernelPatches = [ {
24+ name = "bcachefs-${commit}";
25+ patch = fetchpatch {
26+ name = "bcachefs-${commit}.diff";
27+ url = "https://evilpiepirate.org/git/bcachefs.git/rawdiff/?id=${commit}&id2=v${lib.versions.major kernel.version}.${lib.versions.minor kernel.version}";
28+ sha256 = diffHash;
29+ };
30+ extraConfig = "BCACHEFS_FS m";
31+ } ] ++ kernelPatches;
1632
17− extraMeta = {
18− branch = "master";
19− hydraPlatforms = []; # Should the testing kernels ever be built on Hydra?
20− maintainers = with lib.maintainers; [ davidak chiiruno ];
21− platforms = [ "x86_64-linux" ];
22− };
23−
24−} // (args.argsOverride or {}))
33+})
pkgs/top-level/all-packages.nix+3−5
@@ -20846,11 +20846,9 @@ in
2084620846 ];
2084720847 };
2084820848
20849− linux_testing_bcachefs = callPackage ../os-specific/linux/kernel/linux-testing-bcachefs.nix {
20850− kernelPatches =
20851− [ kernelPatches.bridge_stp_helper
20852− kernelPatches.request_key_helper
20853− ];
20849+ linux_testing_bcachefs = callPackage ../os-specific/linux/kernel/linux-testing-bcachefs.nix rec {
20850+ kernel = linux_5_13;
20851+ kernelPatches = kernel.kernelPatches;
2085420852 };
2085520853
2085620854 linux_hardkernel_4_14 = callPackage ../os-specific/linux/kernel/linux-hardkernel-4.14.nix {