flake: Allow patched nixpkgs to be substituted and don't prefer local build

This commit is contained in:
Charlotte Van Petegem 2023-08-07 10:52:58 +02:00
parent 9edefca7bd
commit f4c1686af0
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -92,11 +92,15 @@
# Avoid IFD if there are no patches
nixpkgsForSystem = system: if patches == [ ] then inputs.nixpkgs else
(
(import inputs.nixpkgs { inherit system; }).pkgs.applyPatches {
((import inputs.nixpkgs { inherit system; }).pkgs.applyPatches {
inherit patches;
name = "nixpkgs-patched-${inputs.nixpkgs.shortRev}";
src = inputs.nixpkgs;
});
}).overrideAttrs (old: {
preferLocalBuild = false;
allowSubstitutes = true;
})
);
overlays = [
agenix.overlays.default
accentor.overlays.default