2021-05-20 03:05:19 +02:00
|
|
|
{ lib
|
|
|
|
, fetchpatch
|
|
|
|
, kernel
|
|
|
|
, date ? "2021-07-08"
|
|
|
|
, commit ? "3693b2ca83ff9eda49660b31299d2bebe3a1075f"
|
|
|
|
, diffHash ? "1sfq3vwc2kxa761s292f2cqrm0vvqvkdx6drpyn5yaxwnapwidcw"
|
|
|
|
, kernelPatches # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage
|
|
|
|
, argsOverride ? {}
|
|
|
|
, ...
|
|
|
|
} @ args:
|
2017-08-31 12:17:54 +02:00
|
|
|
|
2021-05-20 03:05:19 +02:00
|
|
|
kernel.override ( args // {
|
2017-08-31 12:17:54 +02:00
|
|
|
|
2021-05-20 03:05:19 +02:00
|
|
|
argsOverride = {
|
|
|
|
version = "${kernel.version}-bcachefs-unstable-${date}";
|
|
|
|
extraMeta = {
|
|
|
|
branch = "master";
|
|
|
|
maintainers = with lib.maintainers; [ davidak chiiruno ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
} // argsOverride;
|
2017-08-31 12:17:54 +02:00
|
|
|
|
2021-05-20 03:05:19 +02:00
|
|
|
kernelPatches = [ {
|
|
|
|
name = "bcachefs-${commit}";
|
|
|
|
patch = fetchpatch {
|
|
|
|
name = "bcachefs-${commit}.diff";
|
2021-05-20 03:12:17 +02:00
|
|
|
url = "https://evilpiepirate.org/git/bcachefs.git/rawdiff/?id=${commit}&id2=v${lib.versions.majorMinor kernel.version}";
|
2021-05-20 03:05:19 +02:00
|
|
|
sha256 = diffHash;
|
|
|
|
};
|
|
|
|
extraConfig = "BCACHEFS_FS m";
|
|
|
|
} ] ++ kernelPatches;
|
2017-08-31 12:17:54 +02:00
|
|
|
|
2021-05-20 03:05:19 +02:00
|
|
|
})
|