summaryrefslogtreecommitdiff
path: root/nix/bcachefs-kernel.nix
blob: c937df4c40725c4714f4f579fa062a01296e98d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, fetchpatch
, fetchgit
, fetchFromGitHub
, buildLinux
, commit
, sha256 ? lib.fakeSha256
, 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;
		inherit sha256;
	};

	extraConfig = "BCACHEFS_FS m";
	# NIX_DEBUG=5;
}