Skip to content

Commit

Permalink
nixpkgs-manual.lib-docs: fix sandboxed build on darwin
Browse files Browse the repository at this point in the history
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 #339808
  • Loading branch information
n8henrie committed Sep 12, 2024
1 parent 352eb56 commit 1218148
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/doc-support/lib-function-docs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1218148

Please sign in to comment.