mirror of
https://github.com/NixOS/nix.git
synced 2024-11-30 02:32:26 +00:00
869fb1a2f6
fe5509df
caused only wanted outputs to be passed to the
post-build-hook, which resulted in paths being built
without ever going into the hook.
This commit adds a (currently failing) test for this.
15 lines
333 B
Bash
Executable File
15 lines
333 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -x
|
|
set -e
|
|
|
|
[ -n "$OUT_PATHS" ]
|
|
[ -n "$DRV_PATH" ]
|
|
|
|
echo Pushing "$OUT_PATHS" to "$REMOTE_STORE"
|
|
if [ -n "$BUILD_HOOK_ONLY_OUT_PATHS" ]; then
|
|
printf "%s" "$OUT_PATHS" | xargs nix copy --to "$REMOTE_STORE" --no-require-sigs
|
|
else
|
|
printf "%s" "$DRV_PATH" | xargs nix copy --to "$REMOTE_STORE" --no-require-sigs
|
|
fi
|