mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
stop vendoring bcachefs
the bcachefs linux fork in nixpkgs is in better shape these days
This commit is contained in:
parent
bef51f3f0e
commit
1cd619f26f
3 changed files with 1 additions and 43 deletions
11
flake.nix
11
flake.nix
|
@ -30,17 +30,6 @@
|
|||
disko = pkgs.callPackage ./package.nix { };
|
||||
disko-doc = pkgs.callPackage ./doc.nix { };
|
||||
default = self.packages.${system}.disko;
|
||||
# The way bcachefs support is maintained in nixpkgs is prone to breakage.
|
||||
# That's why we need to maintain a fork here:
|
||||
# https://github.com/NixOS/nixpkgs/issues/212086
|
||||
linux-bcachefs = pkgs.callPackage ./linux-testing-bcachefs.nix { };
|
||||
});
|
||||
legacyPackages = forAllSystems (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
linuxPackages_bcachefs = pkgs.linuxPackagesFor self.packages.${pkgs.system}.linux-bcachefs;
|
||||
});
|
||||
# TODO: disable bios-related tests on aarch64...
|
||||
# Run checks: nix flake check -L
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
# nixpkgs's variant is broken because they have non-applying patches on top of the latest kernel,
|
||||
# instead of using kernel.
|
||||
|
||||
{ buildLinux
|
||||
, fetchFromGitHub
|
||||
, ...
|
||||
} @ args:
|
||||
buildLinux (args // {
|
||||
# NOTE: bcachefs-tools should be updated simultaneously to preserve compatibility
|
||||
version = "6.3.0-2023-05-21";
|
||||
|
||||
modDirVersion = "6.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "koverstreet";
|
||||
repo = "bcachefs";
|
||||
rev = "baaa442cb4abfea84549a3cee863829ee06fb615";
|
||||
sha256 = "sha256-c3WQpUopfqHNkmrDS3WDW4WxXIiKobjbNLjwCQSh0zA=";
|
||||
};
|
||||
|
||||
kernelPatches = (args.kernelPatches or [ ]) ++ [{
|
||||
name = "bcachefs-config";
|
||||
patch = null;
|
||||
extraConfig = ''
|
||||
BCACHEFS_FS m
|
||||
'';
|
||||
}];
|
||||
} // (args.argsOverride or { }))
|
|
@ -1,9 +1,6 @@
|
|||
{ pkgs ? (import <nixpkgs> { })
|
||||
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
||||
}:
|
||||
let
|
||||
linux-bcachefs = pkgs.callPackage ../linux-testing-bcachefs.nix { };
|
||||
in
|
||||
makeDiskoTest {
|
||||
name = "bcachefs";
|
||||
disko-config = ../example/bcachefs.nix;
|
||||
|
@ -22,6 +19,6 @@ makeDiskoTest {
|
|||
});
|
||||
})
|
||||
];
|
||||
boot.kernelPackages = pkgs.lib.mkForce (pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux-bcachefs));
|
||||
boot.kernelPackages = pkgs.lib.mkForce (pkgs.recurseIntoAttrs pkgs.linuxKernel.packages.linux_testing_bcachefs);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue