2023-01-23 12:49:01 +03:00
|
|
|
# nixpkgs's variant is broken because they have non-applying patches on top of the latest kernel,
|
|
|
|
# instead of using kernel.
|
|
|
|
|
2023-04-16 00:08:41 +03:00
|
|
|
{ buildLinux
|
2023-01-23 12:49:01 +03:00
|
|
|
, fetchFromGitHub
|
|
|
|
, ...
|
|
|
|
} @ args:
|
|
|
|
buildLinux (args // {
|
|
|
|
# NOTE: bcachefs-tools should be updated simultaneously to preserve compatibility
|
2023-06-08 12:11:14 +03:00
|
|
|
version = "6.3.0-2023-05-21";
|
2023-05-12 18:20:14 +03:00
|
|
|
|
2023-05-04 11:23:23 +03:00
|
|
|
modDirVersion = "6.3.0";
|
2023-01-23 12:49:01 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koverstreet";
|
|
|
|
repo = "bcachefs";
|
2023-06-08 12:11:14 +03:00
|
|
|
rev = "baaa442cb4abfea84549a3cee863829ee06fb615";
|
|
|
|
sha256 = "sha256-c3WQpUopfqHNkmrDS3WDW4WxXIiKobjbNLjwCQSh0zA=";
|
2023-01-23 12:49:01 +03:00
|
|
|
};
|
|
|
|
|
2023-02-06 17:24:34 +03:00
|
|
|
kernelPatches = (args.kernelPatches or [ ]) ++ [{
|
2023-01-23 12:49:01 +03:00
|
|
|
name = "bcachefs-config";
|
|
|
|
patch = null;
|
|
|
|
extraConfig = ''
|
|
|
|
BCACHEFS_FS m
|
|
|
|
'';
|
|
|
|
}];
|
2023-02-06 17:24:34 +03:00
|
|
|
} // (args.argsOverride or { }))
|