Add bcachefs

This commit is contained in:
Charlotte 🦝 Delenk 2023-05-07 13:39:17 +01:00
parent b93abf1abc
commit 99a808e6b6
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
5 changed files with 46 additions and 0 deletions

View file

@ -71,6 +71,7 @@ in
wordpress-plugins
wordpress-themes
kubo
linux-bcachefs
;
}
// (

View file

@ -114,6 +114,7 @@
wordpress-plugins
wordpress-themes
kubo
linux-bcachefs
;
}
// (

View file

@ -0,0 +1,32 @@
{ lib,
fetchFromGitHub,
buildLinux,
...
} @ args:
let
modDirVersion = "6.3.0";
source = builtins.fromJSON (builtins.readFile ./source.json);
in buildLinux (args // {
inherit modDirVersion;
version = source.date;
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

@ -85,6 +85,7 @@ system: self: super: let
wordpress-plugins = self.callPackage ./web/wordpress-plugins {};
wordpress-themes = self.callPackage ./web/wordpress-themes {};
kubo = self.callPackage ./ipfs/kubo {};
linux-bcachefs = self.callPackage ./linux/bcachefs { kernelPatches = []; };
})
riscv-overlay
];