disko/linux-testing-bcachefs.nix

28 lines
731 B
Nix
Raw Normal View History

2023-01-23 10:49:01 +01: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 10:49:01 +01:00
, fetchFromGitHub
, ...
} @ args:
buildLinux (args // {
# NOTE: bcachefs-tools should be updated simultaneously to preserve compatibility
version = "6.2.0-2023-04-15";
modDirVersion = "6.2.0";
2023-01-23 10:49:01 +01:00
src = fetchFromGitHub {
owner = "koverstreet";
repo = "bcachefs";
rev = "7fe6ebbf4057767c966450a4f2a7f299a179b9da";
sha256 = "sha256-IUAXpSsLZ50zZY8eFHW1wNKH+VGnC6TH3mH2QFr6SUk=";
2023-01-23 10:49:01 +01:00
};
kernelPatches = (args.kernelPatches or [ ]) ++ [{
2023-01-23 10:49:01 +01:00
name = "bcachefs-config";
patch = null;
extraConfig = ''
BCACHEFS_FS m
'';
}];
} // (args.argsOverride or { }))