bcachefs-tools/nix/bcachefs-kernel.nix
Kayla Firestack 505299bcde bcachefs-kernel.nix: rename sha256 function input
overlay.nix: rename diffHash to sha256

replaces diffHash function argument with the name sha256 for clarity

Signed-off-by: Kayla Firestack <dev@kaylafire.me>
2021-10-20 14:47:28 -04:00

34 lines
699 B
Nix

{ 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;
}