mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 14:03:28 +01:00
stop vendoring bcachefs
the bcachefs linux fork in nixpkgs is in better shape these days
This commit is contained in:
1 parent
bef51f3f0e
commit
1cd619f26f
3 files changed
+1
-43
No files matched your search
@@ -30,17 +30,6 @@
|
|||||||
disko = pkgs.callPackage ./package.nix { };
|
disko = pkgs.callPackage ./package.nix { };
|
||||||
disko-doc = pkgs.callPackage ./doc.nix { };
|
disko-doc = pkgs.callPackage ./doc.nix { };
|
||||||
default = self.packages.${system}.disko;
|
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...
|
# TODO: disable bios-related tests on aarch64...
|
||||||
# Run checks: nix flake check -L
|
# 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
-4
@@ -1,9 +1,6 @@
|
|||||||
{ pkgs ? (import <nixpkgs> { })
|
{ pkgs ? (import <nixpkgs> { })
|
||||||
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
linux-bcachefs = pkgs.callPackage ../linux-testing-bcachefs.nix { };
|
|
||||||
in
|
|
||||||
makeDiskoTest {
|
makeDiskoTest {
|
||||||
name = "bcachefs";
|
name = "bcachefs";
|
||||||
disko-config = ../example/bcachefs.nix;
|
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);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user