From f4c1686af06e1d45552eda0a7180d27031e8f926 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Mon, 7 Aug 2023 10:52:58 +0200 Subject: [PATCH] flake: Allow patched nixpkgs to be substituted and don't prefer local build --- flake.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 81db381e..088cb169 100644 --- a/flake.nix +++ b/flake.nix @@ -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