packages/linux-bcachefs: init at 2022-12-07

This commit is contained in:
Max Headroom 2022-12-08 16:36:58 +01:00
parent 107326dfe1
commit 4250a27877
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ lib
, fetchpatch
, kernel
, commitDate ? "2022-12-07"
, currentCommit ? "d73d13472d932df2ecf3cbc5fb122be2d06c6a73"
, diffHash ? "sha256-//0H6Ax24qoHx1iR0s+HGDhEm6mSJwtrKmzN5trNbcw="
, kernelPatches # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage
, argsOverride ? {}
, ...
} @ args:
# NOTE: bcachefs-tools should be updated simultaneously to preserve compatibility
(kernel.override ( args // {
argsOverride = {
version = "${kernel.version}-bcachefs-unstable-${commitDate}";
extraMeta = {
branch = "master";
maintainers = with lib.maintainers; [ davidak Madouura ];
};
} // argsOverride;
kernelPatches = [ {
name = "bcachefs-${currentCommit}";
patch = fetchpatch {
name = "bcachefs-${currentCommit}.diff";
url = "https://evilpiepirate.org/git/bcachefs.git/rawdiff/?id=${currentCommit}&id2=v${lib.versions.majorMinor kernel.version}";
sha256 = diffHash;
};
extraConfig = "BCACHEFS_FS m";
} ] ++ kernelPatches;
}))

View file

@ -49,6 +49,11 @@ in
identity = pkgs.callPackage ./apps/identity { };
linux-bcachefs = pkgs.callPackage ./kernels/linux-bcachefs rec {
kernel = pkgs.linux_6_0;
inherit (kernel) kernelPatches;
};
obfuscate = pkgs.callPackage ./apps/obfuscate { };
marksman = pkgs.callPackage ./lsp/marksman { };