This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/linux/bcachefs/default.nix

34 lines
795 B
Nix
Raw Permalink Normal View History

2023-05-17 11:23:02 +00:00
{
lib,
2023-05-07 12:39:17 +00:00
fetchFromGitHub,
buildLinux,
...
2023-05-17 11:23:02 +00:00
} @ args: let
modDirVersion = "6.3.0";
source = builtins.fromJSON (builtins.readFile ./source.json);
in
buildLinux (args
// {
inherit modDirVersion;
version = "6.3.0+${source.rev}";
src = fetchFromGitHub {
2023-05-07 12:39:17 +00:00
owner = "koverstreet";
repo = "bcachefs";
inherit (source) rev sha256;
2023-05-17 11:23:02 +00:00
};
structuredExtraConfig = with lib.kernel; {
2023-05-07 12:39:17 +00:00
BCACHEFS_FS = module;
BCACHEFS_DEBUG = yes;
KALLSYMS = yes;
KALLSYMS_ALL = yes;
DEBUG_FS = yes;
DYNAMIC_FTRACE = yes;
FTRACE = yes;
2023-05-17 11:23:02 +00:00
};
passthru.updateScript = [
2023-05-07 12:39:17 +00:00
../../scripts/update-git.sh
"github.com/koverstreet/bcachefs"
"linux/bcachefs/source.json"
2023-05-17 11:23:02 +00:00
];
})