Unverified Commit b957e2e2 authored by Someone's avatar Someone Committed by GitHub
Browse files

nix-required-mounts: fix eval errors due to builtins.toFile (#503515)

parents b78d8a6a 51c3e217
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
  runCommand,
  python3Packages,
  allowedPatterns,
  formats,
}:
runCommand "allowed-patterns.json"
  {
@@ -30,7 +31,7 @@ runCommand "allowed-patterns.json"
    ) (builtins.attrNames allowedPatterns);
    env = {
      storeDir = "${builtins.storeDir}/";
      shallowConfigPath = builtins.toFile "shallow-config.json" (builtins.toJSON allowedPatterns);
      shallowConfigPath = (formats.json { }).generate "shallow-config.json" allowedPatterns;
    };
  }
  ''