mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-31 00:00:03 +03:00
nix: Reduce util-linux dependencies through overlays
This aims to reduce CI build time. Signed-off-by: Gabriel de Perthuis <g2p.code@gmail.com>
This commit is contained in:
parent
b69ca0525f
commit
0b2452f41a
15
flake.nix
15
flake.nix
@ -55,9 +55,20 @@
|
|||||||
inherit (lib.lists) findFirst;
|
inherit (lib.lists) findFirst;
|
||||||
inherit (lib.strings) hasPrefix removePrefix substring;
|
inherit (lib.strings) hasPrefix removePrefix substring;
|
||||||
|
|
||||||
|
myOverlays = [
|
||||||
|
(import rust-overlay)
|
||||||
|
(_: prev: {
|
||||||
|
util-linux = prev.util-linux.override {
|
||||||
|
ncursesSupport = false;
|
||||||
|
nlsSupport = false;
|
||||||
|
pamSupport = false;
|
||||||
|
systemdSupport = false;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [ (import rust-overlay) ];
|
overlays = myOverlays;
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
|
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
|
||||||
@ -196,7 +207,7 @@
|
|||||||
localSystem = system;
|
localSystem = system;
|
||||||
pkgs' = import nixpkgs {
|
pkgs' = import nixpkgs {
|
||||||
inherit crossSystem localSystem;
|
inherit crossSystem localSystem;
|
||||||
overlays = [ (import rust-overlay) ];
|
overlays = myOverlays;
|
||||||
};
|
};
|
||||||
|
|
||||||
common = pkgs'.callPackage mkCommon { inherit crane; };
|
common = pkgs'.callPackage mkCommon { inherit crane; };
|
||||||
|
Loading…
Reference in New Issue
Block a user