disko/linux-testing-bcachefs.nix

29 lines
735 B
Nix
Raw Normal View History

2023-01-23 09:49:01 +00:00
# nixpkgs's variant is broken because they have non-applying patches on top of the latest kernel,
# instead of using kernel.
{ lib
, buildLinux
, fetchFromGitHub
, ...
} @ args:
buildLinux (args // {
# NOTE: bcachefs-tools should be updated simultaneously to preserve compatibility
2023-02-01 21:56:32 +00:00
version = "6.1.0-2023-02-01";
2023-01-23 09:49:01 +00:00
modDirVersion = "6.1.0";
src = fetchFromGitHub {
owner = "koverstreet";
repo = "bcachefs";
2023-02-01 21:56:32 +00:00
rev = "52851ef710d4b906d07d9647e50a97a9e9e5a909";
sha256 = "sha256-n00qPtHHEHt3FSIRMoP9IJFAdQJNNwabg+WAKppSAS8=";
2023-01-23 09:49:01 +00:00
};
kernelPatches = (args.kernelPatches or []) ++ [{
name = "bcachefs-config";
patch = null;
extraConfig = ''
BCACHEFS_FS m
'';
}];
} // (args.argsOverride or {}))