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
This commit is contained in:
parent
352eb56574
commit
1218148c55
@ -106,6 +106,7 @@ stdenvNoCC.mkDerivation {
|
|||||||
--arg nixpkgsPath "./." \
|
--arg nixpkgsPath "./." \
|
||||||
--argstr revision ${nixpkgs.rev or "master"} \
|
--argstr revision ${nixpkgs.rev or "master"} \
|
||||||
--argstr libsetsJSON ${lib.escapeShellArg (builtins.toJSON libsets)} \
|
--argstr libsetsJSON ${lib.escapeShellArg (builtins.toJSON libsets)} \
|
||||||
|
--store $(mktemp -d) \
|
||||||
> locations.json
|
> locations.json
|
||||||
|
|
||||||
function docgen {
|
function docgen {
|
||||||
|
Loading…
Reference in New Issue
Block a user