Revert "linux_testing_bcachefs: upstream tarballs rather patchsets"
This reverts commitconduit-nginx98ae18fa62
. Appearantly the consens is that a broken kernel is preferred over a working one that is based on an outdated kernel:98ae18fa62
parent
8018eea2df
commit
161d1b7f6e
|
@ -1,24 +1,33 @@
|
||||||
{ lib, buildPackages, fetchFromGitHub, fetchpatch, perl, buildLinux, ... } @ args:
|
{ lib
|
||||||
|
, fetchpatch
|
||||||
|
, kernel
|
||||||
|
, date ? "2021-07-08"
|
||||||
|
, commit ? "3693b2ca83ff9eda49660b31299d2bebe3a1075f"
|
||||||
|
, diffHash ? "1sfq3vwc2kxa761s292f2cqrm0vvqvkdx6drpyn5yaxwnapwidcw"
|
||||||
|
, kernelPatches # must always be defined in bcachefs' all-packages.nix entry because it's also a top-level attribute supplied by callPackage
|
||||||
|
, argsOverride ? {}
|
||||||
|
, ...
|
||||||
|
} @ args:
|
||||||
|
|
||||||
buildLinux (args // {
|
# NOTE: bcachefs-tools should be updated simultaneously to preserve compatibility
|
||||||
# NOTE: bcachefs-tools should be updated simultaneously to preserve compatibility
|
(kernel.override ( args // {
|
||||||
version = "5.13.0-2021.10.01";
|
argsOverride = {
|
||||||
modDirVersion = "5.13.0";
|
version = "${kernel.version}-bcachefs-unstable-${date}";
|
||||||
|
extraMeta = {
|
||||||
|
branch = "master";
|
||||||
|
maintainers = with lib.maintainers; [ davidak chiiruno ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
} // argsOverride;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
kernelPatches = [ {
|
||||||
owner = "koverstreet";
|
name = "bcachefs-${commit}";
|
||||||
repo = "bcachefs";
|
patch = fetchpatch {
|
||||||
rev = "4114ced1db465b8f4e7f4d6a78aa11416a9ab5d9";
|
name = "bcachefs-${commit}.diff";
|
||||||
sha256 = "sha256-viFC3HHIcjUTDPvloSKKsz9PuSLyvxfYnrtkVUB79mQ=";
|
url = "https://evilpiepirate.org/git/bcachefs.git/rawdiff/?id=${commit}&id2=v${lib.versions.majorMinor kernel.version}";
|
||||||
};
|
sha256 = diffHash;
|
||||||
|
};
|
||||||
|
extraConfig = "BCACHEFS_FS m";
|
||||||
|
} ] ++ kernelPatches;
|
||||||
|
|
||||||
extraConfig = "BCACHEFS_FS m";
|
})).overrideAttrs ({ meta ? {}, ... }: { meta = meta // { broken = true; }; })
|
||||||
|
|
||||||
extraMeta = {
|
|
||||||
branch = "master";
|
|
||||||
hydraPlatforms = []; # Should the testing kernels ever be built on Hydra?
|
|
||||||
maintainers = with lib.maintainers; [ davidak chiiruno ];
|
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
} // (args.argsOverride or {}))
|
|
||||||
|
|
Loading…
Reference in New Issue