disko/linux-testing-bcachefs.nix

29 lines
732 B
Nix
Raw Normal View History

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.
{ buildLinux
2023-01-23 12:49:01 +03:00
, fetchFromGitHub
, ...
} @ args:
buildLinux (args // {
# NOTE: bcachefs-tools should be updated simultaneously to preserve compatibility
version = "6.3.0-2023-05-21";
2023-05-12 18:20:14 +03:00
modDirVersion = "6.3.0";
2023-01-23 12:49:01 +03:00
src = fetchFromGitHub {
owner = "koverstreet";
repo = "bcachefs";
rev = "baaa442cb4abfea84549a3cee863829ee06fb615";
sha256 = "sha256-c3WQpUopfqHNkmrDS3WDW4WxXIiKobjbNLjwCQSh0zA=";
2023-01-23 12:49:01 +03:00
};
kernelPatches = (args.kernelPatches or [ ]) ++ [{
2023-01-23 12:49:01 +03:00
name = "bcachefs-config";
patch = null;
extraConfig = ''
BCACHEFS_FS m
'';
}];
} // (args.argsOverride or { }))