Revert "Revert "Merge pull request 'Add bcachefs' (#197) from add-bcachefs-kernel into main""
This reverts commit b322793444
.
This commit is contained in:
parent
b5e1975499
commit
571a82849e
5 changed files with 59 additions and 0 deletions
|
@ -81,3 +81,10 @@ in
|
||||||
}
|
}
|
||||||
else {}
|
else {}
|
||||||
)
|
)
|
||||||
|
// (
|
||||||
|
if pkgs.system == "x86_64-linux"
|
||||||
|
then {
|
||||||
|
inherit (pkgsWithOverlay) linux-bcachefs;
|
||||||
|
}
|
||||||
|
else {}
|
||||||
|
)
|
||||||
|
|
|
@ -124,6 +124,13 @@
|
||||||
inherit (pkgs) vf2Kernel;
|
inherit (pkgs) vf2Kernel;
|
||||||
}
|
}
|
||||||
else {}
|
else {}
|
||||||
|
)
|
||||||
|
// (
|
||||||
|
if system == "x86_64-linux"
|
||||||
|
then {
|
||||||
|
inherit (pkgs) linux-bcachefs;
|
||||||
|
}
|
||||||
|
else {}
|
||||||
);
|
);
|
||||||
|
|
||||||
modules = import ./modules;
|
modules = import ./modules;
|
||||||
|
|
33
linux/bcachefs/default.nix
Normal file
33
linux/bcachefs/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
buildLinux,
|
||||||
|
...
|
||||||
|
} @ 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 {
|
||||||
|
owner = "koverstreet";
|
||||||
|
repo = "bcachefs";
|
||||||
|
inherit (source) rev sha256;
|
||||||
|
};
|
||||||
|
structuredExtraConfig = with lib.kernel; {
|
||||||
|
BCACHEFS_FS = module;
|
||||||
|
BCACHEFS_DEBUG = yes;
|
||||||
|
KALLSYMS = yes;
|
||||||
|
KALLSYMS_ALL = yes;
|
||||||
|
DEBUG_FS = yes;
|
||||||
|
DYNAMIC_FTRACE = yes;
|
||||||
|
FTRACE = yes;
|
||||||
|
};
|
||||||
|
passthru.updateScript = [
|
||||||
|
../../scripts/update-git.sh
|
||||||
|
"github.com/koverstreet/bcachefs"
|
||||||
|
"linux/bcachefs/source.json"
|
||||||
|
];
|
||||||
|
})
|
11
linux/bcachefs/source.json
Normal file
11
linux/bcachefs/source.json
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"url": "https://github.com/koverstreet/bcachefs",
|
||||||
|
"rev": "799716df00709f7480f575e8fd626915bafba006",
|
||||||
|
"date": "2023-05-14T23:01:14-04:00",
|
||||||
|
"path": "/nix/store/mx6zdja6ii9g3pd7vzv9k4rnm4p4spqm-bcachefs",
|
||||||
|
"sha256": "0zid3g15034nd5cwmn233kn6fjyphkax2nklzhb46sz2283gzkiv",
|
||||||
|
"fetchLFS": false,
|
||||||
|
"fetchSubmodules": false,
|
||||||
|
"deepClone": false,
|
||||||
|
"leaveDotGit": false
|
||||||
|
}
|
|
@ -87,6 +87,7 @@ system: self: super: let
|
||||||
fcitx5 = super.fcitx5.overrideAttrs (_: {
|
fcitx5 = super.fcitx5.overrideAttrs (_: {
|
||||||
src = self.callPackage ./i18n/fcitx5/patched-source.nix {inherit (super) fcitx5;};
|
src = self.callPackage ./i18n/fcitx5/patched-source.nix {inherit (super) fcitx5;};
|
||||||
});
|
});
|
||||||
|
linux-bcachefs = self.callPackage ./linux/bcachefs {kernelPatches = [];};
|
||||||
})
|
})
|
||||||
riscv-overlay
|
riscv-overlay
|
||||||
];
|
];
|
||||||
|
|
Reference in a new issue