From 1218148c55d713b91105675e6a2192e63d90a389 Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Thu, 12 Sep 2024 12:44:17 -0600 Subject: [PATCH] nixpkgs-manual.lib-docs: fix sandboxed build on darwin The darwin sandbox prevents this nix call from accessing `/nix/ store/.links` resulting in a build failure: ``` > error: getting status of '/nix/store/.links': Operation not permitted ``` Thanks to @emilazy for the workaround! Fixes https://github.com/NixOS/nixpkgs/issues/339808 --- doc/doc-support/lib-function-docs.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/doc-support/lib-function-docs.nix b/doc/doc-support/lib-function-docs.nix index 8c9673d887bf..4306fa926278 100644 --- a/doc/doc-support/lib-function-docs.nix +++ b/doc/doc-support/lib-function-docs.nix @@ -106,6 +106,7 @@ stdenvNoCC.mkDerivation { --arg nixpkgsPath "./." \ --argstr revision ${nixpkgs.rev or "master"} \ --argstr libsetsJSON ${lib.escapeShellArg (builtins.toJSON libsets)} \ + --store $(mktemp -d) \ > locations.json function docgen {