From b6b5ed965788da03c43a9132163a5b77b7d72604 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 28 Feb 2022 14:30:24 +0100 Subject: ... --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 1ef81d4c..481f0214 100644 --- a/flake.nix +++ b/flake.nix @@ -154,7 +154,7 @@ overlay = final: prev: composeManyExtensions (attrValues self.overlays) final prev; overlays = mapAttrs (_name: path: import path) overlayPaths; overlays-path = forAllSystems (system: _: self.legacyPackages.${system}.writeText "overlays.nix" '' - map import (builtins.attrValues (builtins.fromJSON (builtins.unsafeDiscardStringContext (builtins.readFile ${self.legacyPackages.${system}.writeText "overlays.json" (toJSON overlayPaths)})))) + map import (builtins.attrValues (builtins.fromJSON ${self.legacyPackages.${system}.lib.strings.escapeNixString (toJSON (builtins.attrValues overlayPaths))})) ''); packages = mapAttrs (_name: filterAttrs (_name: isDerivation)) packages; -- cgit v1.2.3