Revert "Revert "Merge pull request 'Add bcachefs' (#197) from add-bcachefs-kernel into main""

This reverts commit b322793444.
This commit is contained in:
Charlotte 🦝 Delenk 2023-06-25 14:07:35 +01:00
parent b5e1975499
commit 571a82849e
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
5 changed files with 59 additions and 0 deletions

View file

@ -81,3 +81,10 @@ in
} }
else {} else {}
) )
// (
if pkgs.system == "x86_64-linux"
then {
inherit (pkgsWithOverlay) linux-bcachefs;
}
else {}
)

View file

@ -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;

View 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"
];
})

View 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
}

View file

@ -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
]; ];