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
|
# Avoid IFD if there are no patches
|
||||||
nixpkgsForSystem = system: if patches == [ ] then inputs.nixpkgs else
|
nixpkgsForSystem = system: if patches == [ ] then inputs.nixpkgs else
|
||||||
(
|
(
|
||||||
(import inputs.nixpkgs { inherit system; }).pkgs.applyPatches {
|
((import inputs.nixpkgs { inherit system; }).pkgs.applyPatches {
|
||||||
inherit patches;
|
inherit patches;
|
||||||
name = "nixpkgs-patched-${inputs.nixpkgs.shortRev}";
|
name = "nixpkgs-patched-${inputs.nixpkgs.shortRev}";
|
||||||
src = inputs.nixpkgs;
|
src = inputs.nixpkgs;
|
||||||
});
|
}).overrideAttrs (old: {
|
||||||
|
preferLocalBuild = false;
|
||||||
|
allowSubstitutes = true;
|
||||||
|
})
|
||||||
|
);
|
||||||
overlays = [
|
overlays = [
|
||||||
agenix.overlays.default
|
agenix.overlays.default
|
||||||
accentor.overlays.default
|
accentor.overlays.default
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue