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:
Gabriel de Perthuis 2025-03-23 12:55:11 +00:00
parent b69ca0525f
commit 0b2452f41a

View File

@ -55,9 +55,20 @@
inherit (lib.lists) findFirst;
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 {
inherit system;
overlays = [ (import rust-overlay) ];
overlays = myOverlays;
};
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
@ -196,7 +207,7 @@
localSystem = system;
pkgs' = import nixpkgs {
inherit crossSystem localSystem;
overlays = [ (import rust-overlay) ];
overlays = myOverlays;
};
common = pkgs'.callPackage mkCommon { inherit crane; };