Merge pull request #8241 from Luabee/patch-1

Mention `$DRV_PATH` in post-build-hook docs
This commit is contained in:
Robert Hensing 2023-09-28 00:11:00 +01:00 committed by GitHub
commit ea2fa8b6f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,8 @@ exec nix copy --to "s3://example-nix-cache" $OUT_PATHS
> store sign`. Nix guarantees the paths will not contain any spaces,
> however a store path might contain glob characters. The `set -f`
> disables globbing in the shell.
> If you want to upload the `.drv` file too, the `$DRV_PATH` variable
> is also defined for the script and works just like `$OUT_PATHS`.
Then make sure the hook program is executable by the `root` user: