2021-10-14 17:16:32 +03:00
|
|
|
{ lib
|
|
|
|
, fetchpatch
|
|
|
|
, fetchgit
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildLinux
|
|
|
|
, commit
|
2021-10-19 22:25:33 +03:00
|
|
|
, sha256 ? lib.fakeSha256
|
2021-10-14 17:16:32 +03:00
|
|
|
, kernelVersion ? "5.13.0"
|
|
|
|
, kernelPatches ? [] # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage
|
|
|
|
, argsOverride ? {}
|
|
|
|
, versionString ? (builtins.substring 0 8 commit)
|
|
|
|
, ...
|
|
|
|
} @ args:
|
|
|
|
|
|
|
|
buildLinux {
|
|
|
|
inherit kernelPatches;
|
|
|
|
|
|
|
|
# pname = "linux";
|
|
|
|
version = "${kernelVersion}-bcachefs-${versionString}";
|
|
|
|
|
|
|
|
modDirVersion = kernelVersion;
|
|
|
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
name = "bcachefs-kernel-src";
|
|
|
|
owner = "koverstreet";
|
|
|
|
repo = "bcachefs";
|
|
|
|
rev = commit;
|
2021-10-19 22:25:33 +03:00
|
|
|
inherit sha256;
|
2021-10-14 17:16:32 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
extraConfig = "BCACHEFS_FS m";
|
|
|
|
# NIX_DEBUG=5;
|
|
|
|
}
|