flake: Allow patched nixpkgs to be substituted and don't prefer local build
This commit is contained in:
parent
9edefca7bd
commit
f4c1686af0
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue