disko/linux-testing-bcachefs.nix

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